Re: saving sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 6, 2011 at 7:56 AM, wil prim <wilprim@xxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux