Last post May 06, 2011 01:26 PM by greekhand
May 06, 2011 12:45 PM|greekhand|LINK
Hi, there is a way to create a method that can be reached from multi pages on the site and deals with sessions ? When I create new classes it cannot handle sessions ... There is any solution for that ?
I want to create some method call CreateNewSession() - That start the session and write anthoer cookie.
I need to use that in multi pages in the site ... So there is a way to create one method for that some how ?
May 06, 2011 01:02 PM|N_EvilScott|LINK
You can create a class to manage session data if you want. On an aspx page Session is auto given to you in the web form object, but for your own class you'll need to just add
using System.Web; at the top and then do...
May 06, 2011 01:26 PM|greekhand|LINK
Yessssss, works great.