| Re: adding a session variable |
| by trabis on 2009/1/8 23:08:09 open common.php and paste $_SESSION['un'] = $_REQUEST['un']; right before ?> Then you can get use $var=$_SESSION['un']; in any page that calls mainfile.php (this covers almost every page, lol) |
| Re: adding a session variable |
| by tayling on 2009/1/8 23:01:14 thanks trabis sounds good but i cant see how to do that - can you give me an example? am using ver 2.0.18.1 byt the way Thanks TOny |
| Re: adding a session variable |
| by trabis on 2009/1/8 22:55:43 Quote:
Why using that in index? You should use it in include/common.php so it can be accessed in other pages. |
| Re: adding a session variable |
| by trabis on 2009/1/8 22:52:19 ... |
| Re: adding a session variable |
| by tayling on 2009/1/8 22:46:33 I have now tried domainname.com/xoops/index.php?un=1234 and in index.php $_SESSION['un'] = $_REQUEST['un'] but this does not carry into the session any ideas? Cheers Tony |