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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP SESSION related problem

    The session variables are not carried into the next page.
    Basically i have created a session variable in page1 and then redirected it to the next page page2. In the page2 I have print that session variable and it is printed. All these are working fine in my localhost but i have uploaded it into the server but there i am not able to get the session variables. The first page session variables are not carried into the next page. i don't know what is the exact problem. If any body knows please kindly reply to it as soon as possible..

  2. #2
    New Coder
    Join Date
    Nov 2011
    Location
    Ratio, Logic
    Posts
    61
    Thanks
    4
    Thanked 6 Times in 6 Posts
    Track Ronald's answer here.

  3. #3
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,409
    Thanks
    30
    Thanked 877 Times in 875 Posts
    Without code it's just a crap shoot for us.
    My guess (and without code everything here will be a guess) is you didn't start the page with
    PHP Code:
    <?php
    session_start
    ();
    Which has to be the first line on EVERY page.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.


 

Tags for this Thread

Posting Permissions

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