OZONE Asylum
Forums
DHTML/Javascript
Creating "Buffers" - problems with history and coookies
This page's ID:
28018
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I really can't say that I like having JS handle your session management. Were I to do this I might create two classes for the continuations [code]class Continuation { var $id; var $parent_id; var $message; ... Getters Setters and Helper Functions Here ... } class ContinuationManager { var $continuations = array(); ... Getters Setters and Helper Function Here ... }[/code] Then I would pop the manager into a session (if it is not there and all that jazz). [code]$_SESSION['continuations'] = &New ContinuationManager;[/code] Then on each new page you would need to generate a new continuation and link it to its parrent continuation. This could all be done in the continuation manager with some nice helper functions. [code]$_SESSION['continuations']->generateContinuation()[/code] access would be pretty easy as well. [code]$_SESSION['continuations']->getLastMessage()[/code] In this way you will have all of your session management in your server side code and not have to worry about buggy browser support for JavaScript or even those who do not have JS enabled. Dan @ [url=http://www.codetown.org]Code Town[/url] [small](Edited by [url=http://www.ozoneasylum.com/user/191]WarMage[/url] on 06-01-2006 06:40)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »