Search:
Namespaces
Discussions
.NET v1.1
Feedback
Question: Configuring Session State
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngmob' list
.
Robert Kiendl
-- Moved from [aspngibuyspy] to [aspngmob] by Bob Levittan <
Click here to reveal e-mail address
> --
Hi all,
im experiancing troubles with MMIT and ericsson device, which would prefere
to get session info with the tag <sessionState cookieless="true" />
presented in the url and not by a cookie.
I'm looking for a programatical way to control session state device
depented.If there is someone who did this before please respond to this
post. Any help is appreciated!
thanks Rob
reference:
http://support.microsoft.com/default.aspx?scid=kb
;en-us;Q307598 (State
Management Overview)
Reply to this message...
Joe Croney
Hi Rob,
Unfortunately there is no way to programmatically configure
session state. However, you could use the device capabilities object to
determine if the device supports cookies, and redirect to an
appropriately configured application directory. Here is an example:
public void Page_Load(object sender, System.
EventArgs
e)
{
// determine if the browser supports cookies and redirect
// to an appropriately configured application
// ex. CookielessApp has <sessionState cookieless=3D"true" />=20
// in web.config
if (Request.Browser.Cookies =3D=3D true)
Response.Redirect("
http://myhost/CookieApp/"
;);
else
Response.Redirect("
http://myhost/CookielessApp/"
;);
}
Thanks,
Joseph Croney
-----------------
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From: Robert Kiendl [mailto:
Click here to reveal e-mail address
]=20
Sent: Wednesday, April 17, 2002 1:24 AM
To: aspngmob
Subject: [aspngmob] Question: Configuring Session State
-- Moved from [aspngibuyspy] to [aspngmob] by Bob Levittan
<
Click here to reveal e-mail address
> --
Hi all,
im experiancing troubles with MMIT and ericsson device, which would
prefere
to get session info with the tag <sessionState cookieless=3D"true" />
presented in the url and not by a cookie.
I'm looking for a programatical way to control session state device
depented.If there is someone who did this before please respond to this
post. Any help is appreciated!
thanks Rob
reference:
http://support.microsoft.com/default.aspx?scid=3Dkb
;en-us;Q307598 (State
Management Overview)
| [aspngmob] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngmob.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
Anil John
Robert,
Exactly what type of error are you running into?
I am using cookieless sessions and really have not experienced any problems...
You might also want to look at a sample web.config file @
http://learnmw.com/Learn/Webconfig.aspx
The relevant bits are the 'session state settings' and the 'using redirects' sections.
Anil
--
-- Anil John -
http://LearnMW.com
-- #1 .net Mobile & Wireless Resource
-- Connect with .net - Anytime. Anywhere.
--
Reply to this message...
Ryan M. Swank
we manage sessions in sql server with SQL Agent. You need to run
'InstallSqlState.sql' found in C:\WINNT\Microsoft.NET\Framework\v1.0.3705
I don't know the guts as another member of our team got that working but
look into it.
hope this helped
-----Original Message-----
From: Joe Croney [mailto:
Click here to reveal e-mail address
]
Sent: Wednesday, April 17, 2002 2:06 PM
To: aspngmob
Subject: [aspngmob] RE: Question: Configuring Session State
Hi Rob,
Unfortunately there is no way to programmatically configure
session state. However, you could use the device capabilities object to
determine if the device supports cookies, and redirect to an
appropriately configured application directory. Here is an example:
public void Page_Load(object sender, System.
EventArgs
e)
{
// determine if the browser supports cookies and redirect
// to an appropriately configured application
// ex. CookielessApp has <sessionState cookieless="true" />
// in web.config
if (Request.Browser.Cookies == true)
Response.Redirect("
http://myhost/CookieApp/"
;);
else
Response.Redirect("
http://myhost/CookielessApp/"
;);
}
Thanks,
Joseph Croney
-----------------
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From: Robert Kiendl [mailto:
Click here to reveal e-mail address
]
Sent: Wednesday, April 17, 2002 1:24 AM
To: aspngmob
Subject: [aspngmob] Question: Configuring Session State
-- Moved from [aspngibuyspy] to [aspngmob] by Bob Levittan
<
Click here to reveal e-mail address
> --
Hi all,
im experiancing troubles with MMIT and ericsson device, which would
prefere
to get session info with the tag <sessionState cookieless="true" />
presented in the url and not by a cookie.
I'm looking for a programatical way to control session state device
depented.If there is someone who did this before please respond to this
post. Any help is appreciated!
thanks Rob
reference:
http://support.microsoft.com/default.aspx?scid=kb
;en-us;Q307598 (State
Management Overview)
| [aspngmob] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngmob.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
| [aspngmob] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngmob.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
System.EventArgs
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com