| |

VerySource

 Forgot password?
 Register
Search
View: 2352|Reply: 12

Urgent ~~ Wait online! ! Session problem in jsp!

[Copy link]

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-11-26 21:00:02
| Show all posts |Read mode
I use session in the jsp page to store the user's login id, which is stored in the session, but in the subsequent login pages, the value in the session can be used normally only once, and then click on other pages to get the session The value of is null; I also searched the Internet and said it was a browser problem, so I downloaded Firefox, just like the netizens said, it can be used this time, but why can't it be obtained by IE? It used to be possible, and now there is a small module that is also used in IE, but it can be used. I don’t know why, so I post here! Everyone help me, what is the reason! ! ! ! ! ! ! ! ! 1
Reply

Use magic Report

0

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-11-27 03:00:01
| Show all posts
Session and cookie are closely related, check your IE security level, privacy, cookie settings
Reply

Use magic Report

0

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-11-27 08:45:01
| Show all posts
Make your web site a safe site
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-11-27 09:45:01
| Show all posts
Set as a safe site! !
How to set it up?
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-11-27 11:30:01
| Show all posts
Is there a problem with my IE settings, or a problem with my program itself! !
Reply

Use magic Report

0

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 Netherlands

Post time: 2020-11-27 17:00:01
| Show all posts
According to what you said, it shouldn't be a program problem, you can try it on another machine~!
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-11-27 18:15:01
| Show all posts
Every time you take the value in the session, reset the value in the session (for example: request.getSession().setAttribute("xx",xxx);) and see if it can be resolved.
I think it should be ok
If the above method is feasible, if you want to find the cause of the problem, check whether the session attribute setting is only taken once.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-11-27 18:45:02
| Show all posts
Did your ie disable cookies?
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-11-27 19:00:02
| Show all posts
Every time you take the value in the session, reset the value in the session (for example: request.getSession().setAttribute("xx",xxx);) and see if it can be resolved.
I think it should be ok
If the above method is feasible, if you want to find the cause of the problem, check whether the session attribute setting is only taken once.
  
/////////////////////////////////////////////////
That’s a lot of trouble. It's probably related to the settings of IE, so continue to pay attention
Reply

Use magic Report

0

Threads

16

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-11-27 19:15:01
| Show all posts
I think it shouldn’t be the problem of IE, it should be the problem of the program. If it’s the problem of IE, then you click on a page after logging in to a website while surfing the Internet. It’s not that the session is also lost, and you have to log in again. , Check your program carefully, post the code if it doesn’t work
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