Jump to content

how to create a session for a simple login form


lovelyjitu

Recommended Posts

ermmm... you create a session as follows:

 

<?php
session.start();

$_SESSION['loginName'] = $username;
$_SESSION['password'] = $password;

?>

 

if you want an complete login script, search at google for a tutorial. Its not that hard to make and its nice coding practics ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.