Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: sessions

  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sessions

    Hi I need help.

    #-----i started a session on an index page---------#
    session_start();

    > now, my problem is that every link in my site has a current session id added to it. e.g. i get

    http://domain/?main_menu=colleague_find&register=colleague_manage_auth&"PHPSESSID=5a98d947c8991db727d7cd235ca2da3c "

    instead of:

    ?main_menu=colleague_find&register=colleague_manage_auth.

    without destroying a session.

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Location
    Nigeria
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This actually happens when cookies are disabled on the browser u are using. Normally, session variables are stored in a file with the name of the file stored in a cookie so that each page where the session is used call up the session name from the cookie and use it to call up the file where the session variables are stored. So if cookies are disabled on the browser, PHP adds the name to each link on the page (iframe, ahref etc) so that it can keep track of the session name across this pages.


  •  

    Posting Permissions

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