Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP 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 September 3rd, 2004, 05:57 AM
Registered User
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session without cookies

Hi friends,

When I disabled the cookies in my browser. Is it possible for me to access a site which uses JSP HttpSession for maintaining session?


thanks in advance,

sampath

 
Old October 8th, 2004, 09:58 AM
Authorized User
 
Join Date: Nov 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sonicDace Send a message via MSN to sonicDace Send a message via Yahoo to sonicDace
Default

you can use encodeURL( string ) and encodeRedirectURL ( string ), where the string is the url you want to specify. These will append the jsessionid as a parameter to the end of your request.

if you are using JSP, it would look something like this:

<a href="<%= response.encodeURL ("/linkToAnotherPage.jsp") %>">

thanks
 
Old October 8th, 2004, 10:02 AM
Authorized User
 
Join Date: Nov 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sonicDace Send a message via MSN to sonicDace Send a message via Yahoo to sonicDace
Default

Sorry for the misinterpretation.

My post is what you would do if you want your site to support sessions for people whos browsers don't support cookies, or have them disabled.

To answer your question: Yes, you can make use of sessions with cookies disabled in your browser IF the site took the aforementioned previsions.

thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session cookies in global.asa mabelis Classic ASP Professional 7 August 4th, 2007 07:48 AM
Session Vs ASP cookies mikedeepak Classic ASP Professional 1 June 19th, 2006 12:25 PM
firefox session cookies problem fender79 Classic ASP Basics 0 April 11th, 2005 08:35 PM
Difference between Session and Response.Cookies? Lucy Classic ASP Basics 1 March 2nd, 2004 02:03 PM
session management without cookies Nazu Classic ASP Professional 3 November 14th, 2003 03:46 PM





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