Hello,
I am facing a problem related to the sessions and the FRAMES.
Here is the scenario.
The user enters username and password in login.php.
After the authorization, the user is directed to data.php.
The data.php is actually a framed document holiding three php scripts. Data.php has session_start(); at the top of the page.
The structure of data.php is as follows.
[pre]
| header.php |
| ---------------------------------|
| | |
| | |
| | |
| | |
| bar.php | work.php |
| | |
| | |
| | |
| | |
[/pre]
the header.php is just to show logo.
bar.php is the sidepar for choices. Anything selected from bar.php will be loaded in the frame where you can see work.php
Now the problem is that: If the session expires, I want user to go back to login.php. It doesn't happen actually. The login.php opens in the frame where you can see work.php.
Can anybody please tell me how to avoid from this mess?
Thanks in advance 🙂
Edit: Should I avoid frames? What you suggest? What you'd do?