473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

HttpModule - SessionStateModule with cookieless uri state

Does anyone know how to persuade the SessionStateModule to set the HttpSessionState.IsCookieless to true.

I tried redirecting to a URI of the format /host/(SessionId)/original/path
but it does not pick up that session when it receives the redirected request.

Thanks
Nov 18 '05 #1
4 2874
Can't you just do that from the web.config file?

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="true" timeout="120" />

"Todd Throne" wrote:
Does anyone know how to persuade the SessionStateModule to set the HttpSessionState.IsCookieless to true.

I tried redirecting to a URI of the format /host/(SessionId)/original/path
but it does not pick up that session when it receives the redirected request.

Thanks

Nov 18 '05 #2
Is that just for local sql access?

I want to be able to use the SessionStateModule to maintain sessions using cookies if the client supports cookies, and then somehow kickstart it into using uri bases session support when I detect the client doesn't support cookies.
Nov 18 '05 #3
I see. I don't know if you can just switch between the two. ...hmm, your best
bet might just be to store your session in SQL Server.You won't have to
change any code and you won't have to worry if the user allows cookies. Less
headache.

"Todd Throne" wrote:
Is that just for local sql access?

I want to be able to use the SessionStateModule to maintain sessions using cookies if the client supports cookies, and then somehow kickstart it into using uri bases session support when I detect the client doesn't support cookies.

Nov 18 '05 #4
all the .net session managers support cookieless. the sql connection string
is only used by the sqlstate manager and the stateConnectionString is used
only by the server session manager. mode controls which session manager is
used.

-- bruce (sqlwork.com)
"Todd Throne" <no************@nospam-novell.com> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
Is that just for local sql access?

I want to be able to use the SessionStateModule to maintain sessions using

cookies if the client supports cookies, and then somehow kickstart it into
using uri bases session support when I detect the client doesn't support
cookies.
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve Donnelly | last post by:
I have an HttpModule that gets the SessionStateModule and registers for the Start and End events. Global receives both Start and End events (both timeout and when Session.Abandon() is called),...
2
by: Tom Pester | last post by:
I experimented/researched cookieless sessions and tried it on my website. I expected the switch to cookieless sessions to be transparent but this isn' t the case at all: 1) Forms based...
4
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external...
0
by: wjs wsl | last post by:
public void Init(HttpApplication app) { bool flag1 = false; SessionStateSection section1 = RuntimeConfig.GetAppConfig().SessionState; if (!this.s_oneTimeInit) {...
0
by: wjs wsl | last post by:
public void Init(HttpApplication app) { bool flag1 = false; SessionStateSection section1 = RuntimeConfig.GetAppConfig().SessionState; if (!this.s_oneTimeInit) {...
7
by: Tomasz | last post by:
Hello Developers, I have an interesting problem. How, or when can I access SessionState from HttpModule? It seems that session state is only available when *.aspx page is requested. It is not...
8
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we...
10
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I've been on this for a while, and cannot figure it out. Can someone please help with this message? SessionState can only be used when EnableSessionState is set to true, either in a...
4
by: Cirene | last post by:
In my web.config I added <pages enableSessionState="true">. In each of my pages I also added EnableSessionState="True" to the Page declaration. (I didn't think this was necessary, but...) ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.