|
Posted by R. Rajesh Jeba Anbiah on 11/08/28 11:31
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.
<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.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|