LP6: Session weirdness

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

LP6: Session weirdness

Karim Dahdah
Hi list,

Does anyone know of any session weirdness on Lasso 6 (Windows IIS)?

This code works fine on Lasso 7 but not on Lasso 6:


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>

<?lassoscript
var:'started' = false;
(session_start: -name='testsession', -expires='60');
if: ((var:'started') == false);
        var:'started' = true;
        var:'isnewsession' = true;
        session_addvariable: -name='testsession', 'started';
/if;


'Session ID: ' + (session_id: -name='testsession') + '<br />';
'started: ' + $started + '<br />';
'isnewsession: ' + (var:'isnewsession') + '<br />';
?>

</body>
</html>



Thanx


Greetz,

Karim


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: LP6: Session weirdness

Olivier Miossec


> <?lassoscript
> var:'started' = false;
> (session_start: -name='testsession', -expires='60');
> if: ((var:'started') == false);
> var:'started' = true;
> var:'isnewsession' = true;
> session_addvariable: -name='testsession', 'started';
> /if;

Try to add , -UseCookie,-UseLink;

Session_Start: -Name='testsession', -Expires='60', -UseCookie,-UseLink;
               
                Session_AddVariable: -Name='testsession', 'started';


---
Olivier Miossec
AIM/ichat omiossec
--
http://www.lasso-developpeur.net
--

Need a Lasso consultant ?
(Lasso, Java, Databases Consultant ...)
http://www.lasso-developpeur.net/oliviermiossec/

--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: LP6: Session weirdness

Karim Dahdah
In reply to this post by Karim Dahdah
I found it... sorry, I was too fast :)
The session table was corrupted!

Greetz,
Karim




Karim Dahdah wrote:

> Hi list,
>
> Does anyone know of any session weirdness on Lasso 6 (Windows IIS)?
>
> This code works fine on Lasso 7 but not on Lasso 6:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> </head>
>
> <body>
>
> <?lassoscript
> var:'started' = false;
> (session_start: -name='testsession', -expires='60');
> if: ((var:'started') == false);
>     var:'started' = true;
>     var:'isnewsession' = true;
>     session_addvariable: -name='testsession', 'started';
> /if;
>
>
> 'Session ID: ' + (session_id: -name='testsession') + '<br />';
> 'started: ' + $started + '<br />';
> 'isnewsession: ' + (var:'isnewsession') + '<br />';
> ?>
>
> </body>
> </html>
>
>
>
> Thanx
>
>
> Greetz,
>
> Karim
>
>


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage