Groups | Blog | Home
all groups > asp.net > november 2004 >

asp.net : How To maintain Session state without cookies


clintonG
11/4/2004 7:17:12 PM
This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C4C2A2.E30A9AB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

ASP.NET supports using SQL Server to maintain state when cookies
can not be used. Go to MSDN [1] and read documentation.


--=20
<%=3D Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET csgallagher@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/=20

[1] http://msdn.microsoft.com/




"Oscar Onorato" <oscaronorato@responderAlNewshotmail.com> wrote in =
message news:Oe2hkGtwEHA.3624@TK2MSFTNGP09.phx.gbl...
Hello colleagues: =20

Somebody know that good alternatives I have, in addition to the =
cookies, to maintain the session state? =20
Where an example of it can be seen? =20
Thanks
















Agile Processes:=20

"Assume that the most important factor in a project's success is the =
quality of the people on the project and how well they work together in =
human terms.=20
Which process they use and which tools they use are strictly =
second-order effects."

Martin Fowler (Distilled UML Third Ed.)
------=_NextPart_000_0027_01C4C2A2.E30A9AB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>ASP.NET supports using SQL Server to =
maintain state=20
when cookies</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>can not be used. Go to MSDN [1] and =
read=20
documentation.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial =
size=3D2>
<DIV><BR>-- <BR>&lt;%=3D Clinton Gallagher, "Twice the Results&nbsp; -- =
Half the=20
Cost"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Architectural =
&amp;=20
e-Business Consulting -- Software=20
Development<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NET <A=20
href=3D"mailto:csgallagher@REMOVETHISTEXTmetromilwaukee.com">csgallagher@=
REMOVETHISTEXTmetromilwaukee.com</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
URL <A=20
href=3D"http://www.metromilwaukee.com/clintongallagher/">http://www.metro=
milwaukee.com/clintongallagher/</A>=20
</DIV>
<DIV>&nbsp;</DIV>
<DIV>[1] <A=20
href=3D"http://msdn.microsoft.com/">http://msdn.microsoft.com/</A></DIV>
<DIV></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Oscar Onorato" &lt;<A=20
=
href=3D"mailto:oscaronorato@responderAlNewshotmail.com">oscaronorato@resp=
onderAlNewshotmail.com</A>&gt;=20
[quoted text, click to view]
href=3D"news:Oe2hkGtwEHA.3624@TK2MSFTNGP09.phx.gbl">news:Oe2hkGtwEHA.3624=
@TK2MSFTNGP09.phx.gbl</A>...</DIV>
<DIV><FONT face=3DVerdana size=3D2>Hello colleagues:&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Somebody know that good =
alternatives I have, in=20
addition to the cookies, to maintain the session state?&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Where an example of it can be =
seen?&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D1><FONT face=3DVerdana><STRONG>Agile =
Processes</STRONG>:=20
<BR><BR>"Assume that the most important factor in a project's success =
is the=20
quality of the people on the project and how well they work together =
in human=20
terms. <BR>Which process they use and which tools they use are =
strictly=20
second-order effects."<BR><BR></FONT><FONT =
face=3DVerdana><STRONG>Martin Fowler=20
(Distilled UML Third=20
Ed.)</STRONG></FONT></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0027_01C4C2A2.E30A9AB0--
Karl Seguin
11/4/2004 9:50:41 PM
This is a multi-part message in MIME format.

------=_NextPart_000_003A_01C4C2B8.53E8C030
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The question is somewhat misleading. Session state is never stored in =
the cookie, only the sessionId which is used to retrieve the session =
state. Or alternatively, you could be telling us that you are using your =
own session managment classes and using cookies...

If the first case is true, and you simply don't want session Ids stored =
in cookies, you can simply go in your web.config, and set the =
<sessionState cookieless=3D"true" ... />

If the second case is true, I'd suggest you use the built-in session =
capabilities of ASP.Net, and the link provided by clinton is a good =
place to start.

Karl

--=20
MY ASP.Net tutorials
http://www.openmymind.net/


"Oscar Onorato" <oscaronorato@responderAlNewshotmail.com> wrote in =
message news:Oe2hkGtwEHA.3624@TK2MSFTNGP09.phx.gbl...
Hello colleagues: =20

Somebody know that good alternatives I have, in addition to the =
cookies, to maintain the session state? =20
Where an example of it can be seen? =20
Thanks
















Agile Processes:=20

"Assume that the most important factor in a project's success is the =
quality of the people on the project and how well they work together in =
human terms.=20
Which process they use and which tools they use are strictly =
second-order effects."

Martin Fowler (Distilled UML Third Ed.)
------=_NextPart_000_003A_01C4C2B8.53E8C030
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>The question is somewhat =
misleading.&nbsp; Session=20
state is never stored in the cookie, only the sessionId which is used to =

retrieve the session state. Or alternatively, you could be telling us =
that you=20
are using your own session managment classes and using =
cookies...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If the first case is true, and you =
simply don't=20
want session Ids stored in cookies, you can simply go in your =
web.config, and=20
set the &lt;sessionState cookieless=3D"true" ... /&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If the second case is true, I'd suggest =
you use the=20
built-in session capabilities of ASP.Net, and the link provided by =
clinton is a=20
good place to start.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Karl</FONT></DIV>
<DIV><BR>-- <BR>MY ASP.Net tutorials<BR><A=20
href=3D"http://www.openmymind.net/">http://www.openmymind.net/</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Oscar Onorato" &lt;<A=20
=
href=3D"mailto:oscaronorato@responderAlNewshotmail.com">oscaronorato@resp=
onderAlNewshotmail.com</A>&gt;=20
[quoted text, click to view]
href=3D"news:Oe2hkGtwEHA.3624@TK2MSFTNGP09.phx.gbl">news:Oe2hkGtwEHA.3624=
@TK2MSFTNGP09.phx.gbl</A>...</DIV>
<DIV><FONT face=3DVerdana size=3D2>Hello colleagues:&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Somebody know that good =
alternatives I have, in=20
addition to the cookies, to maintain the session state?&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Where an example of it can be =
seen?&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D1><FONT face=3DVerdana><STRONG>Agile =
Processes</STRONG>:=20
<BR><BR>"Assume that the most important factor in a project's success =
is the=20
quality of the people on the project and how well they work together =
in human=20
terms. <BR>Which process they use and which tools they use are =
strictly=20
second-order effects."<BR><BR></FONT><FONT =
face=3DVerdana><STRONG>Martin Fowler=20
(Distilled UML Third=20
Ed.)</STRONG></FONT></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003A_01C4C2B8.53E8C030--
Oscar Onorato
11/4/2004 9:51:53 PM
This is a multi-part message in MIME format.

------=_NextPart_000_00A0_01C4C2B8.7EE19320
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello colleagues: =20

Somebody know that good alternatives I have, in addition to the cookies, =
to maintain the session state? =20
Where an example of it can be seen? =20
Thanks
















Agile Processes:=20

"Assume that the most important factor in a project's success is the =
quality of the people on the project and how well they work together in =
human terms.=20
Which process they use and which tools they use are strictly =
second-order effects."

Martin Fowler (Distilled UML Third Ed.)
------=_NextPart_000_00A0_01C4C2B8.7EE19320
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Hello colleagues:&nbsp; </FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Somebody know that good alternatives =
I have, in=20
addition to the cookies, to maintain the session state?&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Where an example of it can be =
seen?&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D1><FONT face=3DVerdana><STRONG>Agile =
Processes</STRONG>:=20
<BR><BR>"Assume that the most important factor in a project's success is =
the=20
quality of the people on the project and how well they work together in =
human=20
terms. <BR>Which process they use and which tools they use are strictly=20
second-order effects."<BR><BR></FONT><FONT face=3DVerdana><STRONG>Martin =
Fowler=20
(Distilled UML Third Ed.)</STRONG></FONT></FONT></DIV></BODY></HTML>

------=_NextPart_000_00A0_01C4C2B8.7EE19320--
Saravana
11/5/2004 5:53:04 AM
Cookieless session is supporting in ASP.NET, you just need to set this
property "cookieless" in sessionstate section in web.config to true. For
more details, refer this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfsessionstatesection.asp


--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com


[quoted text, click to view]
Hello colleagues:

Somebody know that good alternatives I have, in addition to the cookies, to
maintain the session state?
Where an example of it can be seen?
Thanks
















Agile Processes:

"Assume that the most important factor in a project's success is the quality
of the people on the project and how well they work together in human terms.
Which process they use and which tools they use are strictly second-order
effects."

Martin Fowler (Distilled UML Third Ed.)

Oscar Onorato
11/5/2004 10:56:16 AM
This is a multi-part message in MIME format.

------=_NextPart_000_0041_01C4C326.12E8D980
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thank you Saravana
"Saravana" <saravank@sct.co.in> escribi=F3 en el mensaje =
news:4zEid.2410$Hr2.2094@news.cpqcorp.net...
Cookieless session is supporting in ASP.NET, you just need to set this
property "cookieless" in sessionstate section in web.config to true. =
For
more details, refer this link
=
http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/cpgenr=
ef/html/gngrfsessionstatesection.asp


--=20
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com


"Oscar Onorato" <oscaronorato@responderAlNewshotmail.com> wrote in =
message
news:Oe2hkGtwEHA.3624@TK2MSFTNGP09.phx.gbl...
Hello colleagues:

Somebody know that good alternatives I have, in addition to the =
cookies, to
maintain the session state?
Where an example of it can be seen?
Thanks
















Agile Processes:

"Assume that the most important factor in a project's success is the =
quality
of the people on the project and how well they work together in human =
terms.
Which process they use and which tools they use are strictly =
second-order
effects."

Martin Fowler (Distilled UML Third Ed.)


------=_NextPart_000_0041_01C4C326.12E8D980
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Thank you Saravana</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Saravana" &lt;<A=20
href=3D"mailto:saravank@sct.co.in">saravank@sct.co.in</A>&gt; =
escribi=F3 en el=20
mensaje <A=20
=
href=3D"news:4zEid.2410$Hr2.2094@news.cpqcorp.net">news:4zEid.2410$Hr2.20=
94@news.cpqcorp.net</A>...</DIV>Cookieless=20
session is supporting in ASP.NET, you just need to set =
this<BR>property=20
"cookieless" in sessionstate section in web.config to true. =
For<BR>more=20
details, refer this link<BR><A=20
=
href=3D"http://msdn.microsoft.com/library/default.asp?url=3D/library/en-u=
s/cpgenref/html/gngrfsessionstatesection.asp">http://msdn.microsoft.com/l=
ibrary/default.asp?url=3D/library/en-us/cpgenref/html/gngrfsessionstatese=
ction.asp</A><BR><BR><BR>--=20
<BR>Saravana<BR><A=20
=
href=3D"http://dotnetjunkies.com/WebLog/saravana/">http://dotnetjunkies.c=
om/WebLog/saravana/</A><BR><A=20
=
href=3D"http://www.ExtremeExperts.com">www.ExtremeExperts.com</A><BR><BR>=
<BR>"Oscar=20
Onorato" &lt;<A=20
=
href=3D"mailto:oscaronorato@responderAlNewshotmail.com">oscaronorato@resp=
onderAlNewshotmail.com</A>&gt;=20
[quoted text, click to view]
href=3D"news:Oe2hkGtwEHA.3624@TK2MSFTNGP09.phx.gbl">news:Oe2hkGtwEHA.3624=
@TK2MSFTNGP09.phx.gbl</A>...<BR>Hello=20
colleagues:<BR><BR>Somebody know that good alternatives I have, in =
addition to=20
the cookies, to<BR>maintain the session state?<BR>Where an example of =
it can=20
be=20
=
seen?<BR>Thanks<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><B=
R><BR><BR>Agile=20
Processes:<BR><BR>"Assume that the most important factor in a =
project's=20
success is the quality<BR>of the people on the project and how well =
they work=20
together in human terms.<BR>Which process they use and which tools =
they use=20
are strictly second-order<BR>effects."<BR><BR>Martin Fowler (Distilled =
UML=20
Third Ed.)<BR><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0041_01C4C326.12E8D980--
AddThis Social Bookmark Button