You are here: Re: design question: sessions vs arguments « PHP Programming Language « IT news, forums, messages
Re: design question: sessions vs arguments

Posted by Carl on 03/01/06 20:35

Chung Leong wrote:
> julian_m wrote:
>
>>In order to achieve a good design and therefore a good product, should
>>I have to use session variables instead, or is it just a way to do the
>>same?
>
>
> Don't do it. Using session variables to somehow hide GET variables
> cause major navigation issues when visitors view your site in multiple
> tabs/windows.
>

Like already being logged in when you browse the same site in another
window or tab? I would think thats a good thing.

My advice would be the opposite, don't pass data in the URL unless you
have a good reason to, and there often are good reasons.

I wouldn't suggest you set a product category in a session, but for the
user info, #items/page, etc there is no reason to pass it in the url,
and reasons why it would be beneficial to have it in the session.
Think which items should apply to the users "session", and which should
apply to individual instances (browser windows/tabs) of the session.

Cheers,
Carl.

 

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

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