SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jul 2001
    Location
    New Zealand
    Posts
    340
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Logging out of frames session problem.

    hey guys, i have made and administrator area which when logged in displays the administrator area in frames.

    Portion of login area which contains frames...
    PHP Code:
    ................
    <?php
     
    if (isset($_SESSION['administrator']))
       {
    //administration area frame 
    session_start();
    ?>

    <html>
    <head>
    <title>administrationarea</title>
    </head>
    <frameset rows="*" cols="180,*" frameborder="YES" border="0" framespacing="0">
      <frame src="frame4.php" name="leftFrame" scrolling="YES">
      <frameset rows="20,*" frameborder="NO" border="0" framespacing="0">
        <frame src="frame3.php" name="topFrame" scrolling="NO" noresize>
        <frame src="frame2.php" name="middleFrame">
      </frameset>
    </frameset>
    <noframes><body>
    </body></noframes>
    </html>
    <?php

    The left payne contains the logout link which opens logout.php in _top Target.


    logout.php
    PHP Code:
     <?php
    session_start
    ();
    session_destroy();?>


    When i logout and i press the back button it displays this message

    Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

    To resubmit your information and view this Web page, click the Refresh button.



    But apon pressing the refresh button it displays the administrator area

    Is there anything i need to consider when logging out with frames or have i done something wrong?

    Thanks

  2. #2
    SitePoint Evangelist
    Join Date
    Feb 2004
    Location
    Sofia, Bulgaria
    Posts
    421
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use redirection to another page after the logout.. and check for more info on session_destroy() in PHP Manual (for manually deleting cookies etc.)..


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •