Jump to content

Link with Session ID in


slj90

Recommended Posts

HI all,

 

I am trying to create a link that gets the ID from the session and uses it in the link

 

An example:

 

http://localhost/burned/loggedon.php?ID=41

 

How do I create the link to include the ID number of the user that's currently logged in?

 

$ID = $_SESSION["authenticatedUser"] ;
   
   
   // (2)gather details of CustomerID sent 
$ID = $_GET['ID'] ;

 

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/188533-link-with-session-id-in/
Share on other sites

You can have php automatically append the actual session id to a url but it poses a significant security risk as may your method. Why would you need to pass a value held within the session array through a url? It will be available throughout a users session from within the session array.

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.