Results 1 to 5 of 5

Thread: SESSION Unexpected behaviour

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    SESSION Unexpected behaviour

    im creating session variables in one page and when i try to access session variables on other page then session variables does not exists. Means it exists only on the page in which they are defined and not accessible on other pages.

    But works very well on my localhost. it happens only on the server after uploading script. There is no error i have uses session_start() on the top of the code.

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: SESSION Unexpected behaviour

    Are you using session_start() on both pages ?

    Check if you are unsetting it somewhere in your code after it was set.


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    Re: SESSION Unexpected behaviour

    yez im using it
    same code working on other server

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: SESSION Unexpected behaviour

    hmm... Then check if there is some problem with the session storage in your server. Just inquire about it to the customercare department of that hosting provider.

    Or is it your own local server ?


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    Re: SESSION Unexpected behaviour

    Quote Originally Posted by akhileshbc View Post
    hmm... Then check if there is some problem with the session storage in your server. Just inquire about it to the customercare department of that hosting provider.

    Or is it your own local server ?

    no this is not my localhost
    it works fine on my localhost. You are right i will mail to customer care :-)

Posting Permissions

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



Click Here to Expand Forum to Full Width