Jump to content

session_id() within the url


Destramic

Recommended Posts

hey im just wondering how to get the session id within the url?

 

example:

index.php?session_id=456n45l6j7567l67j5675j7  ...

 

i could simply do it this way but im sure there is a simpler way..

 

<?php

$session_id = session_id();

echo "<a href=/"index.php?session_id=".session_id."/" title=/"Home/">Home</a>";

 

 

thanks

 

Ricky

Link to comment
https://forums.phpfreaks.com/topic/47211-session_id-within-the-url/
Share on other sites

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.