as suggested, you will have to use cookies. they have a much better lifetime than sessions. For reference on cookies, check out http://www.w3schools.com/PHP/php_cookies.asp
Hi balaganesh... Use cookie with php and JS. If you are using jQuery, you can use cookies easily. Otherwise, use JS to update cookie data. Access those cookie variables from php @ next run. Choose a longer cookie life time. Reply if you need further details
My friend told me about it and send me a code for it which is shared here by me. I think it will be help you. $cookie = array( 'name' => 'remember_me_token', 'value' => 'Random string', 'expire' => '1209600', // Two weeks 'domain' => '.your_domain.com', 'path' => '/' ); set_cookie($cookie);