SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    world
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up "frame" logout problem

    Hi,

    control_panel.php file has 3 frames .
    left_top.php
    left_bottom.php
    center.php

    control_panel.php
    PHP Code:
    <frameset rows="*" framespacing="0" frameborder="NO" border="1" >
      <
    frameset cols="199,*" framespacing="0" frameborder="NO" border="1">
      <
    frameset rows="80,*" frameborder="yes" border="1" framespacing="0">
      <
    frame src="left_top.php" name="topFrame" scrolling="no" noresize >

      <
    frame src="left_bottom.php" name="leftFrame" scrolling="yes" noresize>
    </
    frameset>
      <
    frame src="center.php" name="right">
      </
    frameset>
    </
    frameset>
    <
    noframes><body
    now left_top.php has the logout button . When I click it
    it only redirect to index.php ...but other (two) frame (left_bottom.php,center.php) remain same.

    <?
    session_start();
    session_destroy();
    header("Location:../mysite/index.php");
    exit(0);
    ?>

    How do I shift the user from all frame(3 frame) to index.php ?

    Hope it is clear
    Last edited by dvddesign; Jun 11, 2007 at 23:41. Reason: clarification

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Have the target of the logout link be the parent/top window, so that it changes the address of the entire window, not just the individual frame.

  3. #3
    SitePoint Member
    Join Date
    Feb 2006
    Location
    Yogyakarta, Indonesia
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On your Log Out link, add the target window as sample:

    Code:
    <a href="logout.php" title="Log out" target="_parent">Log Out</a>
    hope it works.

  4. #4
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    world
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Dan Grossman"& "sandal" thanks a lot :: it works perfectly .
    "sandal" thanks again for the code


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
  •