www.webdeveloper.com
Results 1 to 3 of 3

Thread: quick & easy session question

  1. #1
    Join Date
    Jul 2006
    Posts
    22

    quick & easy session question

    hi guys,

    stupid problem here. i have a login page that starts a session variable and sets $_SESSION['username'] = "some_value".

    if i navigate to another page within the same directory i can read $_SESSION['username'] variable, but if i navigate to a page in a different directory on my site i cannot. i check it with isset() which returns false.

    any ideas, is it some thing to do with my .ini or my .htaccess files?

    many thanks for any advice.

  2. #2
    Join Date
    Jun 2006
    Location
    Cape Town, South Africa
    Posts
    146
    Do you start the session on all the pages?

  3. #3
    Join Date
    Jul 2006
    Posts
    22
    yep. session is started on every page.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles