Re: saving sessions
| From: | Midhun Girish | Date: | Fri, 05 Aug 2011 02:50:11 +0000 |
| Subject: | Re: saving sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314364@lists.php.net to get a copy of this message | ||
On Sat, Aug 6, 2011 at 7:56 AM, wil prim <wilprim@me.com> wrote:
> Hello, im new to the whole storing sessions thing and I really dont know
> how to ask this question, but here it goes. So on my site when someone logs
> in the login.php file checks for a the username and password in the table i
> created, then if it finds a match it will store a $_SESSION [] variable. To
> be exact the code is as follows:
> if ($count=='1')
> {
> session_start();
> $_SESSION['user']=$user; // $user is the $_POST['user'] from the login
> form
> header('location: login_success.php');
> }
>
> Now what i would like to know is how do i make my website save new changes
> the user made while in their account?
>
> thanks!
>
>
You will have to store the user account related data in the database for
persistence.... Or if the site not having a 'user account system' you may
use cookies to store the settings...
Midhun Girish