PHP Classes

help with sessions

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  help with sessions  
Subject:help with sessions
Summary:I need to include $refid session inside a $language session
Messages:2
Author:Pablo
Date:2011-03-19 13:22:01
Update:2011-08-06 07:04:14
 

  1. help with sessions   Reply   Report abuse  
Picture of Pablo Pablo - 2011-07-15 09:39:25
Hi all.

I have a problem that has been doing my head in for quite a few hours and hope that someone can help, any help would be very much appreciated.

I have a referral system on my members site and want to include a language choice which i have accomplished.

The problem is if a person goes to the site url:

mysite.biz/15/index.php?referid=Pab ...

Then clicks on a language - say he chooses dutch the page goes to:

mysite.biz/15/index.php?ln=nl

and drops the ?referid=pablo

how do i change the following session to include the referid also.

<?php

session_start();
error_reporting(E_ALL);

include("../language/Language.php");
if(isset($_GET['ln'])) $_SESSION['language'] = $_GET['ln'];
Language::Set($_SESSION['language']);
Language::SetAuto(true);

?>

Thanks for looking and thanks in advance of any help.

Paul.


There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.