Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

EAServer 5.3.0, session problem when cookies disabled (JSESSIONID)

6 posts in Java J2EE specific Last posting was on 2006-09-22 16:10:44.0Z
neil Posted on 2006-09-21 14:58:56.0Z
Sender: 3a47.44eb11d0.1804289383@sybase.com
From: Neil
Newsgroups: sybase.public.easerver.j2ee
Subject: EAServer 5.3.0, session problem when cookies disabled (JSESSIONID)
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4512a860.1bff.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 21 Sep 2006 07:57:36 -0700, 10.22.241.42
Lines: 19
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Sep 2006 07:57:37 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Sep 2006 07:58:56 -0700
X-Trace: forums-1-dub 1158850736 10.22.108.75 (21 Sep 2006 07:58:56 -0700)
X-Original-Trace: 21 Sep 2006 07:58:56 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7735
Article PK: 208180

Hello!

I'm experiencing problems with my website when cookies are
disabled on my browser. I user the session object to store
information passed from one page/servlet to another.

I found something saying that I had to use the encodeURL
method on the response object for every URL in the site that
the user can access, but I can't immagine doing that, well I
can, but it would take a lot of time, thing that I dont have
actually...

Is there a property on the server or somewhere else that I
can set so that my session object can be used when cookies
are disabled?

Thanks for your time
Best regards
Neil.


Mark Maslow Posted on 2006-09-22 06:48:09.0Z
From: "Mark Maslow" <mark.maslow@sierraclub.org>
Newsgroups: sybase.public.easerver.j2ee
References: <4512a860.1bff.1681692777@sybase.com>
Subject: Re: EAServer 5.3.0, session problem when cookies disabled (JSESSIONID)
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: adsl-70-137-150-186.dsl.snfc21.sbcglobal.net
Message-ID: <45138527$1@forums-2-dub>
X-Original-Trace: 21 Sep 2006 23:39:35 -0700, adsl-70-137-150-186.dsl.snfc21.sbcglobal.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Sep 2006 23:44:21 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Sep 2006 23:48:09 -0700
X-Trace: forums-1-dub 1158907689 10.22.108.75 (21 Sep 2006 23:48:09 -0700)
X-Original-Trace: 21 Sep 2006 23:48:09 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7736
Article PK: 208182

Welcome to the fabulous world of stateless protocols. In order to preserve
state, you must include something in each request that tells the server who
you are. Session temporary cookies are one way to accomplish that. If the
browser doesn't accept cookies, the only other alternative is to attach the
session id to each request, which is what happens when you use the encodeURL
method. Significant J2EE web applications typically use a framework such as
Struts or JSF that handle this transparently.

<Neil> wrote in message news:4512a860.1bff.1681692777@sybase.com...
> Hello!
>
> I'm experiencing problems with my website when cookies are
> disabled on my browser. I user the session object to store
> information passed from one page/servlet to another.
>
> I found something saying that I had to use the encodeURL
> method on the response object for every URL in the site that
> the user can access, but I can't immagine doing that, well I
> can, but it would take a lot of time, thing that I dont have
> actually...
>
> Is there a property on the server or somewhere else that I
> can set so that my session object can be used when cookies
> are disabled?
>
> Thanks for your time
> Best regards
> Neil.