Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(isset($_SESSION['mysessionvariable'])==false)//if your variable isn't there
- {
- session_unset();//so lets destroy whatever session there was and bring them to login page
- session_destroy();
- //Put HTML page
- ?>
- <html>
- <head>
- You have to be logged in to access this page.<br>Redirecting to login page.
- </body>
- </html>
- <?php
- }
- else //otherwise, they can see the page
- {
- ?>
- <html>
- <head>
- you can add/delete job now
- </body>
- </html>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement