Alternatives when user's browser doesn't accept cookies

  • Thread starter Thread starter Robert V. Hanson
  • Start date Start date
R

Robert V. Hanson

If you have per user information that you want to store in session and the
setting in web.config is set to cookieless=false so you are intending on
using cookies, the user's browser is set to not accept cookies, what can you
do as alternative for storing that data?

What is the tradeoff if you just set the cookieless=true?

I am just trying to determine a set of best practices for this on my
project.

Thanks in advance,
 
If you have cookieless=true, then sessionID will be concatenated to every
URL string so that it is automatically passed around to each page. As a
developer this will be seemless to you and the session stuff will just work.
The only real drawback is the ugly sessionID that will appear in the address
bar of the user's browser.
This is the only reasonably simple way to keep track of the user's session
if they have cookies turned off.
 
Hello Robert,

I think your question is: How to store asp state information without
cookies information.

Generall speaking, the most common options to preserve state are as
follows:
Session and Application Variables
Cookies
Hidden Form Fields
QueryString
File and Database

I recommend you read one good MSDN article on it:
"HOWTO: Store State in Active Server Pages Applications"
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q175167

Hope it helps.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com
--------------------
!From: "Robert V. Hanson" <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Subject: Alternatives when user's browser doesn't accept cookies
!Date: Wed, 2 Jul 2003 11:36:41 -0500
!Organization: Posted via Supernews, http://www.supernews.com
!Message-ID: <[email protected]>
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!X-Complaints-To: (e-mail address removed)
!Lines: 18
!Path:
cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone.bc.net!sjc70.we
busenet.com!news.webusenet.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!
corp.supernews.com!not-for-mail
!Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:31777
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!If you have per user information that you want to store in session and the
!setting in web.config is set to cookieless=false so you are intending on
!using cookies, the user's browser is set to not accept cookies, what can
you
!do as alternative for storing that data?
!
!What is the tradeoff if you just set the cookieless=true?
!
!I am just trying to determine a set of best practices for this on my
!project.
!
!Thanks in advance,
!
!--
!Bob Hanson
!CEO
!Custom Programming Unlimited LLC
!
!
!
 
Back
Top