|
Posted by windandwaves on 11/06/14 11:31
R. Rajesh Jeba Anbiah wrote:
> windandwaves wrote:
> <snip>
>> . Can anyone check that I am doing it right. I thought I
>> was doing it right, but then the site started doing really, really
>> funny stuff, basically loosing track of sessions ...
>>
>> I want my application to be as portable as possible, so I want to
>> override all the php.ini values that are important.
> <snip>
>> echo '<a href="testme.php?'.sid(false).'">link one on the page</a>';
>> echo '<a href="testme.php?a=3'.sid(true).'">link two on the
>> page</a>';
> <snip>
>> /*startup.php file: */
>> //function to start session
>> function startup() {
>> $expiry = 60 * 60 * 24 * 1000;
>> ini_set('session.cache_limiter', 'nocache');
>> ini_set('session.use_trans_sid', 1);
>
> I couldn't find errors in the code. But,
> ini_set('session.use_trans_sid', 1) is possible only in PHP 5.
hmmm, i kept wondering why it did not work. I am using php 4.2
> <snip>
>> //function to include session ID in case they do not accept cookies
>> function sid($withamp) {
> <snip>
>
> This looks overkill. You don't have to append the URL's manually
> when you use trans sid.
see above. If use_trans_sid does not work then I will have to manually add
the session IDs for people without cookies???
Thanks for the reply. Much appreciated.
- Nicolaas
Navigation:
[Reply to this message]
|