They are entirely different like Response.Expires with -1500 is for particular page,Once user will press back button ,He wouldn't be able to see previous page.I mean It will expire within no time.
SESSION.TIMEOUT IS FOR ENTIRE APPLICATION and is no way realted to above.
Regards
shabir
Marked as answer by rogerz1234567 on Feb 10, 2011 08:09 AM
rogerz123456...
Member
138 Points
122 Posts
Response.Expire equivalent in .Net
Feb 04, 2011 09:52 AM|LINK
Hello all,
I am migrating an application from classic ASP to .Net. What is the following line doing and what is its equivalent in .Net. ?
<%Response.Expires = -1500%>
If i set the the "timeout" property of the session state tag in web.config will this do my work ?
Behroz Sikander
shabirhakim1
Star
13528 Points
2151 Posts
Re: Response.Expire equivalent in .Net
Feb 04, 2011 10:00 AM|LINK
rogerz123456...
Member
138 Points
122 Posts
Re: Response.Expire equivalent in .Net
Feb 04, 2011 10:12 AM|LINK
Can you please tell me that what -1500 is doing ? and how it is different from timeout property of session state in web.config.
I googled this and realised that response.expire will be used on every page and timeout will be just used once in the web.config.
Sorry , if my question is newbie as this is my first project.
Btw, thank you for your reponse.
Regards,
Behroz
Behroz Sikander
shabirhakim1
Star
13528 Points
2151 Posts
Re: Response.Expire equivalent in .Net
Feb 04, 2011 10:21 AM|LINK
Hi,
They are entirely different like Response.Expires with -1500 is for particular page,Once user will press back button ,He wouldn't be able to see previous page.I mean It will expire within no time.
SESSION.TIMEOUT IS FOR ENTIRE APPLICATION and is no way realted to above.
Regards
shabir