Link to home
Start Free TrialLog in
Avatar of Gary
GaryFlag for Ireland

asked on

Reload main page on session timeout from frame

How can I reload the main page once a session times out i.e. if they click a link within a frame how do I instruct the main page to reload if the session has expired.
They click a link the page reloads, the session("userid") is checked and if round to be empty then I need to get them to relogin in - I suppose I could just use an intermediary page to show in the frame for them to login again but prefer to redirect back to the index page - as this has some security implications.
ASKER CERTIFIED SOLUTION
Avatar of peh803
peh803
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I said:
"...if it has, write JS code..."

to be clearer:
"...if the session has indeed expired, write JS code..."

HTH,
peh803
Avatar of Gary

ASKER

D'oh, so obvious - been a long day!
No problem!  Glad I could help you out.

Regards,
peh803