Solved

JSP Session Handling

Posted on 2006-07-19
10
220 Views
Last Modified: 2010-04-01
Hi Experts,

I would like to check whether a client machine is supporting sessions or not. If not, what would be the best way to handle sessions in JSP? I further need to know, how i can maintain sessions using URL Rewriting.

Awaiting for your comments.

Regards,
Vijay T. Prabakar
0
Comment
Question by:CIPL-Senthil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
10 Comments
 
LVL 25

Expert Comment

by:Tomas Helgi Johannsson
ID: 17144603
  Hi!

Take a look at this example http://www.java2s.com/Code/Java/JSP/Sessionsdisabled.htm and the related examples.
Hope it helps.

Regards,
  Tomas Helgi
0
 
LVL 5

Expert Comment

by:jpolin1
ID: 17145665
I think your really looking to determine if a client supports cookies, if they don't then you would want to use url rewriting.
0
 

Author Comment

by:CIPL-Senthil
ID: 17153138
Yeah! If there is no support for cookies, I would like to switch to URL rewriting. Can anybody provide some information about this.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 25

Expert Comment

by:Tomas Helgi Johannsson
ID: 17153186
0
 

Author Comment

by:CIPL-Senthil
ID: 17165456
Hi,

Can you provide me the code to check cookies are supported, if not how to URL Rewrite?
0
 
LVL 25

Accepted Solution

by:
Tomas Helgi Johannsson earned 250 total points
ID: 17193929

Take a look at this example :
http://www.java2s.com/Code/Java/Servlets/Usecookietosavesessiondata.htm

Regards,
  Tomas Helgi
0
 

Author Comment

by:CIPL-Senthil
ID: 17206561
Hi,

I would like to have an web application which automatically enables URL Rewritting whenever cookies are not supported on the client machine. I saw some articles on URL Rewritting which speaks about adding the session id to the URL.

I would like to know, is it possible to track the other session variables just by having the session id in the URL or would I have to add every session variable along with the URL.

Please advice.

Regards
Vijay T. Prabakar
0
 
LVL 25

Expert Comment

by:Tomas Helgi Johannsson
ID: 17322148

You would have to add every session variable to the url if you can't write a cookie.

Regards,
  Tomas Helgi
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question