Giarc86
Expert Member
- Joined
- May 28, 2008
- Messages
- 1,243
- Reaction score
- 4
Hi all,
I am trying to capture a session ID from a URL so that the ID will follow a user throughout the site and then get captured when they fill in a form.
The URL will look something like this.
http://www.mysite.co.za/?campaign=the_campaign_name
Then I inserted this code into the top of my Joomla template file:
Will this capture the session and will this work with Joomla as I know Joomla uses its own session ID's?
I haven't been able to test as I don't control the forms, so just wanting to make sure this is the correct way.
Is there a way to check what the current session ID is?
Thanks in advance.
I am trying to capture a session ID from a URL so that the ID will follow a user throughout the site and then get captured when they fill in a form.
The URL will look something like this.
http://www.mysite.co.za/?campaign=the_campaign_name
Then I inserted this code into the top of my Joomla template file:
Code:
<?php
session_start();
$_SESSION['campaign']=$_GET['campaign'];
?>
I haven't been able to test as I don't control the forms, so just wanting to make sure this is the correct way.
Is there a way to check what the current session ID is?
Thanks in advance.