Re: Session HELP !




"Chung Leong" <chernyshevsky@xxxxxxxxxxx> a écrit dans le message de news: 1128465241.852113.59490@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bob Bedford wrote:
In the attempt to keep the URL and code quite clean, and avoid to have a
very loooong url, we have used $_session[] for storing values trough the
pages.

I would just take the time and remove this "feature" of yours and go back to using GET variable. A site that's unbookmarkable is far more annoying to end-users than long URLs. Add to that the inability for Google to properly index your site and strange behavior with new window, the aesthetic gain isn't worth it.

In fact the session variable is also used to avoid worring about such GET or POST variables.
Let's explain: the user make a search about a shoe make.
Then he looks trough the results, changing some pages, going inside articles to see details, and so on, then want to perform an other search.
At every page, I've to worry about 10-20 variables every time. Putting them in a session variable, I may ask the variable when needed, without worring if I passed between all pages. For this I created a bounch of functions to store and retrieve variable very easely, and it's a pain saving as you don't forget to pass variables between pages.


That's the main reason we used sessions variable. We don't need to worry about bookmarking such pages, as they are dynamic. We may use UrlRewrite later for such needs (altrough we didn't look at this function yet)
Also for Google, we provided a sitemap in order to get all articles without the need to worry about dynamic pages.


I am wrong ? any advice would greately be appreciated.

Bob


.



Relevant Pages

  • Re: JD- fun and fast!!!!
    ... and then not needing to worry about it again. ... Are you referring to the trough or to some other boards? ... to eliminate the dredded switch error 81-86 ...
    (rec.games.pinball)
  • Re: I think I may be over
    ... back into the trough, the crests are really great though;o) ... Rather the opposite, if anything. ... don't worry it won't be before ...
    (uk.people.support.depression)