session php

Post on 12-Aug-2015

51 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

How to create independent session for each user

What is session?

What is session?

Codes for session

• // Start the sessionsession_start();

• // Set session variables$_SESSION["favcolor"] = "green";

• // destroy the session session_destroy();

Create independent session for each user

To create that we need :• HTML – “Form login” • PHP – “session”

Plan to do that:

FormForm

My website1 2 Index.php 3

Create session

Create session

Ch_login.php

4

infoinfo

Content.php 5

Create session

Create session

Ch_logout.php

Index.php

Index.php

Ch_login.php

Ch_login.php

content.php

top related