Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Alternatives when user's browser doesn't accept cookies (http://www.velocityreviews.com/forums/t58813-alternatives-when-users-browser-doesnt-accept-cookies.html)

Robert V. Hanson 07-02-2003 04:36 PM

Alternatives when user's browser doesn't accept cookies
 
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



Steve C. Orr, MCSD 07-02-2003 07:31 PM

Re: Alternatives when user's browser doesn't accept cookies
 
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.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net


"Robert V. Hanson" <roberth@cpuandsimplepdm.com> wrote in message
news:vg62nn551q239c@corp.supernews.com...
> 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
>
>




Yan-Hong Huang[MSFT] 07-03-2003 03:24 AM

RE: Alternatives when user's browser doesn't accept cookies
 
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...;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" <roberth@cpuandsimplepdm.com>
!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: <vg62nn551q239c@corp.supernews.com>
!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: abuse@supernews.com
!Lines: 18
!Path:
cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.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
!
!
!



All times are GMT. The time now is 03:08 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57