Lasso Soft Inc. > Home

[session_save]

Linksession_save
AuthorGöran Törnquist
CategorySession
Version8.x
LicensePublic Domain
Posted30 Nov 2009
Updated30 Nov 2009
More by this author...

Description

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.

Sample Usage

session_save('my_session_name');

Source Code

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;	
?>

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft