if (!sNextPage.equals("")) { response.sendRedirect(sNextPage); } } }
When I try to get the session id from Page2.htm it has changed.
Has anyone else experienced this problem.
The code is redirecting properly just changing the session id. If I press refresh on the browser and try the same sequence there is no problem ie. the session id doesn't change. Any ideas would be great.
Cheers, John
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
1
posted
0
When I try to get the session id from Page2.htm it has changed.
If you see a different session id, you have a different session object. There is no way for your code, or normal servlet container code to change the id, thats the whole idea. Bill
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Originally posted by Fred Rogan: Cookie support is on but I wouldn't of thought this would affect the session state anyway.
How do you think the session is maintained?
Fred Rogan
Greenhorn
Joined: Nov 16, 2003
Posts: 9
posted
0
After restudying the topics about session state/cookies etc I realised you guys may have a point. So I disabled my firewall which I thought was not affecting my cookies because of my settings. However this fixed the problem.