cookies and frameset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vjayis
    New Member
    • Mar 2008
    • 134

    cookies and frameset

    hi

    i have a page which contains
    Code:
    <frameset rows="16%,*" frameborder="1" framespacing="1">
    <frame src="includes/header.php" name="top" noresize="noresize">
    <frameset cols="200,*">
    <frame src="menu.php" name="left" noresize="noresize">
    <frame src="welcome.php?p=login" name="right" noresize="noresize">
    </frameset>
    </frameset><noframes></noframes>
    and all functions are performed inside welcome.php through including the specific pages which are mentioned in the menu page.

    and when a user login i m setting a cookie value in the welcome page.,

    but it is not available in other frmeset pages lik menu.php etc..

    tried using the codes to set the cookie

    Code:
    setcookie("user",$user,time()+3600,'http://localhost/transframe/');
    
    and
    
    setcookie("user",$user,time()+3600,'/');
    
    and
    
    setcookie("user",$user,time()+3600);
    so i need to get the cookie value outside that particular also.,

    regards
    vijay
  • vjayis
    New Member
    • Mar 2008
    • 134

    #2
    Any ideas to overcome this problem?????

    Comment

    • dlite922
      Recognized Expert Top Contributor
      • Dec 2007
      • 1586

      #3
      Only thought is, the cookie is being created while the other page is trying to request it. (get something that's not there yet).

      Too early in the morning to tell.

      have you tried testing your cookie scripts without frames? just create a test.php that writes a cookie then create test2.php and try to read that cookie. does it work?

      One part of troubleshooting is "simplify the problem" AKA "Divide and Conquer"

      Good luck,



      Dan

      Comment

      Working...