cookies - Loosin session id over SSL -
im trying send session of data on shared ssl.
to load session have following @ top of core file:
print_r($_cookie); if ( isset( $_post["phpsessid"] ) ) { session_id( $_post["phpsessid"] ); }elseif( isset( $_cookie['phpsessid'] ) ) { session_id( $_cookie["phpsessid"] ); } session_start();
on non ssl view prints differrent id 1 on ssl. whene go , forth ids not changing 2 seperate ones shared ssl , non ssl. how can change script have 1 on both?
use function session_set_cookie_params() , set $secure = false
reference: http://www.php.net/manual/en/function.session-set-cookie-params.php
Comments
Post a Comment