HttpModule - SessionStateModule with cookieless uri state

  • Thread starter Thread starter Todd Throne
  • Start date Start date
T

Todd Throne

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
 
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" />
 
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.
 
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.
 
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top