|Posted||30 Nov 2009|
|Updated||30 Nov 2009|
|More by this author...|
Session_save forces the built-in session manager to save the named session. This is great when you're using either file_serve, url_redirect or any other tag that aborts your request as the last thing to do. This way, the session will get saved in the current state anyway.
It has been tested with Lasso Professional 8.5.6, but should work well with any version from 8.x and later.
It supports both the sqlite and the in-memory driver provided with Lasso. It has not been tested with an external session database.
The tag was originally written by Fletcher Sandbeck of Lassosoft. I merely changed to parenthesis syntax and made it compliant with syntax accepted by Lasso 9.
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
insert( #i = @var(#i)); /iterate; $_session_driver->saveData('_SessionTracker_' + #name + '_' + #id, #store->serialize); /if; /define_tag; ?>