Where to keep a querystring parameter in session ?

Posted by hoang on Stack Overflow See other posts from Stack Overflow or by hoang
Published on 2010-05-26T16:13:43Z Indexed on 2010/05/26 16:21 UTC
Read the original article Hit count: 283

Filed under:
|

Users will get to my site using a specific parameter, e.g. : http://www.mysite.com/whatever/?keepTrackOfThisValue=foo or http://www.mysite.com/who/cares/?keepTrackOfThisValue=bar

I would like to store the value of this peculiar parameter in Session everytime I found it in the QueryString. I'm currently using the Session_Start event in Global.asax in order to store this but I would like to override the value each time the parameter value change, which is not possible my way.

Where would you do this ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET