Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

My website shows a sessiontimeout page when some event happens on a page and the the sesssion is expired.

Page inherits from sessionmanagement class

In the init function of sessionmanagement class, in case the session is expired, it is redirected to sessiontimeout.htm which is in the same folder as response.redirect("sessiontimeout.htm")

For main.aspx it works fine, shows sessiontimeout.htm fine.

But note that main.aspx has ajaxtabcontainer and each tab has iframe. the pages in the iframe are also inherited from sessionmanagement class. In case session expires and any event happens in the pages in the iframe, it tries to load sessiontimeout.htm but gives error -400. I checked the properties in browser. To my surprise, it was trying to load as
<base url="" />/<base root="" folder="" again="" />/sessiontimeout.htm

I dont know why it was appending the base root folder again.

Why it is giving this strange behaviour from pages in iframe when all the pages are in the same folder?

I guess this was not happening in visual studio 2008 but now I am using visual studio 2010.

Any suggestions?

Thanks

Vijay
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900