Jump to content

[SOLVED] session problem


fazzfarrell

Recommended Posts

I have created a session

[code]
<?php
session_start();
$SiteLang = $HTTP_POST_VARS['Language'];
if ($SiteLang != '')
$_SESSION["SiteLang"] = $SiteLang;

?>
[/code]

This works fine and picks up from values such as 'EN' for english and GR for german etc.

But when the site firsts loads I want it to lad as english (EN) untill the user chooses to change the language.

any ideas!
Link to comment
https://forums.phpfreaks.com/topic/30340-solved-session-problem/
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.