Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Cookieless Session ID in Query String

Thread Tools

Cookieless Session ID in Query String

Tom Cole
Posts: n/a

When a client has cookies turn off, our application uses the ASP.NET 2.0
cookieless session which puts the session id into the URI. Is there anyway
to make it use a query string instead?

Here's an example of what we have:


This is what we would want:


The reason for this requirement is because the first url runs havoc on our
web analytics. The software keeps thinking that the session token is a

Thanks so much for your assistance,
Tom Cole

Reply With Quote
Posts: n/a
unfortunately to do what you want requires that you manually set your
querystring. Links could be dynamically built using a database, but that
would require a major re-write of your system.
Reply With Quote
Posts: n/a
I suggest you read up on your web analysis software's documentation.
Most of these packages have some kind of pre and post filtering that
would let you clean the url. Failing that, consider using Microsoft's
Log Parser tool (google it, version 2.2 I think) to pre-process IIS's
logs, stripping out the session path with a regular expression before
you hand the logs to your analysis tool.

- Oisin

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert url with query string to url without query string nick Javascript 1 02-13-2011 11:20 PM
sessionState cookieless and forms cookieless ASP .Net 2 05-09-2006 11:26 PM
Cookieless Session Link, Cause of Session State Problem? ASP .Net 1 01-19-2006 03:53 PM
Cookieless session, but session ID as a query string Hope Paka ASP .Net 0 06-07-2005 06:25 PM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM