You are here: Re: session IDs and the like « PHP Programming Language « IT news, forums, messages
Re: session IDs and the like

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация