|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
about ending sessions without starting themI thought you could just do [Session_End:-Name='mySessionName'] to
end a session - WITHOUT first starting the session. BUT, that doesn't seem to work. It looks like you must start the session before you can end it. Can someone else try the code below and let me know if that's what they see? Do Test 1 before Test 2 and see if Test 2 ends the session and creates a new one (it doesn't for me). You'll see the same sessionID at the bottom of Test 2 (instead of a brand new session ID). Thanks. WORKS: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>SessionTest 1</title> <meta name="generator" content="BBEdit 9.2"> </head> <body> [var: 'sessionName' = 'XXX'] [var: 'sessionTimeout' = 15] Session_Start<br> [Session_Start: -Name=$sessionName, -Expires=$sessionTimeout, -useAuto] <br>Session_Result = [Session_Result] <br>Session_ID = [Session_ID: -Name=$sessionName] <br>Session_End = [Session_End: -Name=$sessionName] <hr> Session_Start<br> [Session_Start: -Name=$sessionName, -Expires=$sessionTimeout, -useAuto] <br>Session_Result = [Session_Result] <br>Session_ID = [Session_ID: -Name=$sessionName] </body> </html> DOES NOT WORK: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>SessionTest 2</title> <meta name="generator" content="BBEdit 9.2"> </head> <body> [var: 'sessionName' = 'XXX'] [var: 'sessionTimeout' = 15] <br>Session_End = [Session_End: -Name=$sessionName] <hr> Session_Start<br> [Session_Start: -Name=$sessionName, -Expires=$sessionTimeout, -useAuto] <br>Session_Result = [Session_Result] <br>Session_ID = [Session_ID: -Name=$sessionName] </body> </html> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "It's better to burn out than to fade away." Tami Williams Creative Computing Let us help you make frustrating, costly, and inefficient processes more efficient, less costly and scalable. FileMaker and Lasso specialists. Tel: 770.457.3221 Fax: 770.454.7419 E-Mail: info@... Web: http://www.asktami.com/ FileMaker Solutions Alliance Associate | Lasso Professional Alliance Member ------ If you want to receive sporadic email from Creative Computing regarding news at the company and announcements about upcoming Lasso webinars and online classes, please opt-in at http://tinyurl.com/yj7eqlg -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: about ending sessions without starting themYou are using the same session name between the two tests and
probably the same browser. If you either use different browsers for each test, or use different names for the sessions in the test files, then you should get the expected results. --steve On 10/23/09 at 7:08 PM, lasso@... (Tami Williams) pronounced: >I thought you could just do [Session_End:-Name='mySessionName'] >to end a session - WITHOUT first starting the session. > >BUT, that doesn't seem to work. > >It looks like you must start the session before you can end it. > > >Can someone else try the code below and let me know if that's what they see? > >Do Test 1 before Test 2 and see if Test 2 ends the session and >creates a new one (it doesn't for me). You'll see the same >sessionID at the bottom of Test 2 (instead of a brand new >session ID). > > > >Thanks. > > > >WORKS: > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >"http://www.w3.org/TR/html4/loose.dtd"> ><html> ><head> ><title>SessionTest 1</title> ><meta name="generator" content="BBEdit 9.2"> ></head> ><body> >[var: 'sessionName' = 'XXX'] >[var: 'sessionTimeout' = 15] > >Session_Start<br> >[Session_Start: -Name=$sessionName, -Expires=$sessionTimeout, -useAuto] ><br>Session_Result = [Session_Result] ><br>Session_ID = [Session_ID: -Name=$sessionName] > ><br>Session_End = [Session_End: -Name=$sessionName] > ><hr> >Session_Start<br> >[Session_Start: -Name=$sessionName, -Expires=$sessionTimeout, -useAuto] ><br>Session_Result = [Session_Result] ><br>Session_ID = [Session_ID: -Name=$sessionName] > > ></body> ></html> > > > > >DOES NOT WORK: > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >"http://www.w3.org/TR/html4/loose.dtd"> ><html> ><head> ><title>SessionTest 2</title> ><meta name="generator" content="BBEdit 9.2"> ></head> ><body> >[var: 'sessionName' = 'XXX'] >[var: 'sessionTimeout' = 15] > ><br>Session_End = [Session_End: -Name=$sessionName] > ><hr> >Session_Start<br> >[Session_Start: -Name=$sessionName, -Expires=$sessionTimeout, -useAuto] ><br>Session_Result = [Session_Result] ><br>Session_ID = [Session_ID: -Name=$sessionName] > > ></body> ></html> > > > > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >"It's better to burn out than to fade away." > >Tami Williams >Creative Computing >Let us help you make frustrating, costly, and inefficient >processes more efficient, less costly and scalable. >FileMaker and Lasso specialists. > >Tel: 770.457.3221 >Fax: 770.454.7419 >E-Mail: info@... >Web: http://www.asktami.com/ > >FileMaker Solutions Alliance Associate | Lasso Professional Alliance Member > >------ > >If you want to receive sporadic email from Creative Computing >regarding news at the company and announcements about upcoming >Lasso webinars and online classes, please opt-in at http://tinyurl.com/yj7eqlg > > >-- >This list is a free service of LassoSoft: http://www.LassoSoft.com/ >Search the list archives: http://www.ListSearch.com/Lasso/Browse/ >Manage your subscription: http://www.ListSearch.com/Lasso/ > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: about ending sessions without starting themOn Oct 23, 2009, at 7:08 PM, Tami Williams wrote: > I thought you could just do [Session_End:-Name='mySessionName'] to > end a session - WITHOUT first starting the session. > > BUT, that doesn't seem to work. > > It looks like you must start the session before you can end it. I have run into this too and can confirm your experience. From my tests you do have to first do a session_start before issuing a session_end. It took me almost an entire day at work to troubleshoot an issue I was having with sessions before I discovered this. (With help from the wonderful people on this list. Here what I concluded: http://www.nabble.com/Re%3A-Session-Oddities-p21360031.html ) -Brad -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
| Free embeddable forum powered by Nabble | Forum Help |