Session vars problem php

go4e-moh

New Member
Well I have unexpected situation here. I am using a code form a site I made long time ago and it works there.I have 3 pages:
- news.php
- newscheck.php
- newsadd.php I have \[code\]session_start()\[/code\] on every page. In newscheck.php, I generate \[code\]session_vars\[/code\] for the fields and \[code\]echo\[/code\] them in the same page so the user to check the info. And they are OK. Clicking on resume takes the user to newsadd.php where the info goes to the database but there all session vars are empty.The most interesting is that I have \[code\]session_var\[/code\] generate back in the login page and it is OK in all pages but the generated vars in newscheck.php are gone in the next page.What could be the problem ?
 
Back
Top