| |

VerySource

 Forgot password?
 Register
Search
Author: zippo中南海

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

 Author| Post time: 2020-6-20 23:15:01
| Show all posts
苹果小刀

What I mean is to record the ID number of this thing under one page, store it in the session, and then use the session to get this ID under another page. If you swipe under that page, this ID will be gone: (but the login is indeed Yes, I use the same method. Strange, it suffocates me
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-6-21 10:30:02
| Show all posts
sweat. . . . It's really a pig's head to do the pig business~ I found it!
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-6-21 15:15:01
| Show all posts
Is there code like Clear or Abandon?
Reply

Use magic Report

1

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-6-23 22:30:01
| Show all posts
Sometimes this problem is encountered for no reason. Not often encountered. Anyway, it will be fine after a while. Khan first. -_#
Reply

Use magic Report

1

Threads

18

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-6-24 16:30:01
| Show all posts
impossible.
Reply

Use magic Report

0

Threads

18

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-7-7 07:00:01
| Show all posts
Session expiration is a headache, you look at how to set it in your webconfig,
But generally speaking, it is useless to set up, depending on what you want to achieve, there is no need to use session at all.
You can just pass it directly in the get way, Response.Redirect("xxx.aspx?id='"+ID+"'")
Just use Request.QurryString["id"] on the xxx.aspx page to receive it...
Reply

Use magic Report

0

Threads

18

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 Israel

Post time: 2020-7-7 08:30:01
| Show all posts
Or try using cookie storage
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