| |

VerySource

 Forgot password?
 Register
Search
View: 1800|Reply: 16

Session problem, after refreshing the webpage, the session value becomes empty?

[Copy link]

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-16 18:30:01
| Show all posts |Read mode
As the title, I used sesssion to pass a value to another webpage. The first time it was used normally, but when I refreshed on that page, the session became empty? why? How to deal with it?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-6-18 15:15:01
| Show all posts
Maybe not, let's see how you deal with Session in detail.
Reply

Use magic Report

0

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-6-18 15:30:01
| Show all posts
????

How do you judge
if(session("")==""||session("")==null)
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-6-18 17:15:02
| Show all posts
Is there any code written on that page to expire the session?
Reply

Use magic Report

0

Threads

29

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-6-18 18:45:01
| Show all posts
The session passed a value to another webpage???? Isn't it possible to go directly to sesion on that page?
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-6-18 22:00:01
| Show all posts
What does "I passed a value to another webpage with sesssion" mean?

Session lost, please refer to http://blog.csdn.net/coderdream/archive/2016/06/07/778090.aspx
Reply

Use magic Report

0

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-6-18 23:15:02
| Show all posts
Will it be dealt with by you on another page?
Reply

Use magic Report

0

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-6-19 12:00:01
| Show all posts
There are 8 out of 10 you have dealt with it on another page?
Reply

Use magic Report

0

Threads

26

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-6-19 14:45:01
| Show all posts
It must be that your page emptied your Session, you check the code like if(!IsPostBack)
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-6-20 19:00:01
| Show all posts
I didn’t expect so many friends to give me advice and suggestions.
It's very strange, when I log in, I also use the session to judge, but after I log in, I refresh, the user name and permissions saved in the session are still there after refreshing! Strange! Why do I use the same method, there will be different results! !
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list