rahulmehta Posted June 21, 2010 Share Posted June 21, 2010 hii , m using extjs and php in my login form on index.php and post action is checklogin.php if successful login than i return to main.php and during action of login form in checklogin.php m setting the session variable of userid which is m not getting on main.php and every time i refresh the page it generate new session id . why this happening.. my session variable in php.ini are session Session Support enabled Registered save handlers files user Registered serializer handlers php php_binary wddx Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 On On session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path c:/wamp/tmp c:/wamp/tmp session.serialize_handler php php session.use_cookies Off Off session.use_only_cookies On On session.use_trans_sid 0 0 please help thank regards rahul Quote Link to comment https://forums.phpfreaks.com/topic/205385-problem-in-session-handling/ Share on other sites More sharing options...
inversesoft123 Posted June 21, 2010 Share Posted June 21, 2010 need to check if session is already exist or not. Quote Link to comment https://forums.phpfreaks.com/topic/205385-problem-in-session-handling/#findComment-1074848 Share on other sites More sharing options...
rahulmehta Posted June 21, 2010 Author Share Posted June 21, 2010 need to check if session is already exist or not. m not getting what you are saying why we need to check session exist or not .... Quote Link to comment https://forums.phpfreaks.com/topic/205385-problem-in-session-handling/#findComment-1074851 Share on other sites More sharing options...
PFMaBiSmAd Posted June 21, 2010 Share Posted June 21, 2010 session.use_cookies Off Off ^^^ you need to turn that setting ON. Quote Link to comment https://forums.phpfreaks.com/topic/205385-problem-in-session-handling/#findComment-1074852 Share on other sites More sharing options...
rahulmehta Posted June 21, 2010 Author Share Posted June 21, 2010 session.use_cookies Off Off ^^^ you need to turn that setting ON. ok thanks its working regards rahul Quote Link to comment https://forums.phpfreaks.com/topic/205385-problem-in-session-handling/#findComment-1074855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.