Hi..
1st Query......
I have a session variable cityId through which i find all the record. When i leave my application unattended for sometime then session expires & it does get the value for city & then throws exception. How I can redirect to a error page when session expires like this.
2nd Query
When I click some page(myprofile.aspx), then i checks if the user is loged in or not, if user is not loged in then redirect to the login page & if loged in then show the page
If I give the user login if user not logined to view the myprofile.aspx then when the use logs in the it should directly go the myprofile.aspx page rather than whatever i provided after login.
Help Me Out.
Loading
Suthish NairPosted Nov 29, 2010, 10:36 AM
The problem re-solved?
CrishPosted Nov 29, 2010, 8:07 AM
you can set session time in global.asax or in web.config file or in IIS but session will out after some time. No matter how...best way you can use cookies for your session problem.
Manikavelu VelayuthamPosted Nov 29, 2010, 7:17 AM
How can it be a bug in asp.net ?
CrishPosted Nov 29, 2010, 7:13 AM
Manikavelu VelayuthamPosted Nov 26, 2010, 6:41 AM
You can handle the session end event there.
Session_Start Event
Session_End Event
Like that its available for Application also.
You can write your own logic there.