SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirecting a "3-framed" page to a single frame page?

    Hey All.

    I have a page with 3 frames. When a users clicks "Logout" I need to kill the session and redirect them to the main login page, login.php.

    The problem is, when they click Logout only the frame the "logout" link is located in gets forwarded to login.php. The session does get killed, but I need the entire page to be redirected to login.php not just the single frame.

    I have tried using the header(Location: login.php) to no avail, is there any trick to do this??

  2. #2
    Worship the Krome kromey's Avatar
    Join Date
    Sep 2006
    Location
    Fairbanks, AK
    Posts
    1,621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On the Logout link, add target="_top":
    Code HTML:
    <a href="logout.php" target="_top">Logout</a>
    PHP questions? RTFM
    MySQL questions? RTFM

  3. #3
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awsome, thanks a lot man. I couldnt find this anywhere.. appreciated.


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
  •