Wrox Programmer Forums
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2006, 02:36 AM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default session id

Hi ,

I need to hide the session id displaying in the browser address bar when user navigates from one page to other.
I am working on servlets and struts .How to hide the session id .
Any one plz help me.


Thankx& Regards,
RAGHAV

 
Old February 13th, 2006, 05:19 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You should use cookies. Look at the HttpServletResponse.addCookie(javax.servlet.http.C ookie) method.

Jon Emerson
http://slashdot.org/~panaceaa
 
Old February 13th, 2006, 05:48 AM
Authorized User
 
Join Date: Jan 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to longjava
Default

Like Jon Emerson said, you can use cookies to handle session. But the drawback is that sometimes users might disable accepting cookie from their browsers for security reason, in that case it would not for you.







Similar Threads
Thread Thread Starter Forum Replies Last Post
what is session id and when does it expire nidhimittal PHP How-To 3 June 29th, 2006 05:17 AM
what is session id and when does it expire nidhimittal Beginning PHP 0 June 26th, 2006 07:20 AM
session id rbojja J2EE 1 February 11th, 2006 01:22 PM
Session Id mixing jejedp VS.NET 2002/2003 0 January 4th, 2006 07:54 PM
Session ID saga web2100 VS.NET 2002/2003 8 January 4th, 2006 07:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.