Jump to content

session values are losting in http://WWW.url but it is working in http://url.


jeh

Recommended Posts

HI,

 

My project have multiple modules.  I have one menu it contains all module tabs. Let us, i login in one module is called 'XXX'. Next i am going to another module is called  'YYY' by clicking menu. In this process session values are working in 'XXX' module. But in 'YYY' module session are losting if url alike 'http://WWW.myurl' but in 'http://myurl' session values are working. How to solve this problem ? If u have any ideas please advice me.

 

Thank in advance,

 

Suman.

Please check the things below in order to debug this issue:

 

1. sesssion_start() should be present at the top of every page wherever session is involved.

2. check by declaring one more session variable and see if the value for that variable is received at the next module.

3. Check if the session variable you are using is not getting a null value while moving from one module to another...

 

visit me at http://www.mysqlandphp.net

WWW. is a hostname/subdomain. Please read the 'domain' setting information at this link to find out how to get sessions to work for all hostnames/subdomains of your domain name - http://us3.php.net/manual/en/function.session-set-cookie-params.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.