Jump to content

[SOLVED] Simple Question About Sessions


tamumech

Recommended Posts

What do you mean?

For example you want to link someone to a page, that needs their userID to display user information about them?

 

<?php
session_start();
$userID = $_SESSION['userID'];
echo '<a href="information.php?userID='.$userID.'">View Your Info</a>';
?>

 

Andy

 

Edit: Sorry Thorpe got there before me!

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.