Page 1 of 1

Re: php cookies and session help

Posted: Thu Mar 05, 2009 11:27 pm
by Benjamin
knight13 wrote:how do i use sessions or cookies to track a persons username and password
Once you "start a session" you can define persistent $_SESSION variables.

Please read:

http://us.php.net/manual/en/function.session-start.php

Re: php cookies and session help

Posted: Mon Oct 25, 2010 3:25 pm
by John Cartwright
You are limited to bumping your thread once per 24 hours. Continuing to do so will result in actions being taken. You've been warned.

Re: php cookies and session help

Posted: Wed Oct 27, 2010 9:31 am
by zainmirza
Hi guys,
Session and cookies in PHP basically preserving the data in web pages. This is technique which cross the data between all admin dynamic pages. For example capture the ID and password for admin facility the next page would be carry session variable as
<----A D M I N S I T E A R E A-------->
LOGIN ------------------------------------------------------------------------------------------------LOGIN
Page 1, Page 2, Page3,........
SESSION ---> pass value to Page 2, and same as next if page is visited stored authenticated information

here is function of session in PHP is
session_strat();
$_SESSION['id']=4;
$_SESSION['admin'];