Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Id coming in URL for first time  RSS feed

 
Robin John
Ranch Hand
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

The issue is i am getting a jsessionid=salkfjlsjfljslfjlsf attached to the url for the first time when i load my page.
How to avoid that without dealing with cookies

Thanks in advance.
[ September 25, 2008: Message edited by: Bear Bibeault ]
 
Brij Garg
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not very sure but I think you can use the session attribute of page attribute
set session attribute to false.
by default session attribute is true.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Robin John:
The issue is i am getting a jsessionid=salkfjlsjfljslfjlsf


1. first of all i doubt on this sessionid..it looks strange..

2. why you want to avoid the session id?
 
Robin John
Ranch Hand
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey i had given an example of the sessionId; that is not the exact one.

and bitoo can you share the code, how do i go about setting it to false. ?

Thanks.
 
Brij Garg
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your jsp, you can add ...
<%@page session="false"%>

Then this jsp is not going to take part in session management.
 
Robin John
Ranch Hand
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried that in my jsp, it wont work

anyways, i am redirecting to the url using java.net.URLEncoder.encode();

and docs say it will attach the session ID to the url if the cookies are not turned on.. i turned on the cookies to.. that wont work also HELP !!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!