php - PHP5.5 $_SESSION array empty after invocation by <form action=> -


i define form, like:

<form name="form1" method="post" action="display_info.php"> 

when action file display_info.php invoked receives $_post array proper info in form, $_session array empty. still need info in caller's $_session!

is there alternate way invoked php file receives both $_session , $_post info? if try method="session" still arrives empty.

if session contains data there should no problem. make sure start session @ start of document with: session_start();.

$_post , $_session global variables different things. don't mix two.

they both arrays can access them other array but, $_post holds data posted page, , $_session holds sessions stored in past.

so if have form posts data page process data, need start session use , access session data through $_session variable.

also try check if $_session empty: var_export($_session);


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -