Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » A few questions about Skylark sessions
Re: A few questions about Skylark sessions [message #38728 is a reply to message #38604] Thu, 10 January 2013 15:58 Go to previous messageGo to previous message
Peter is currently offline  Peter
Messages: 16
Registered: October 2012
Promising Member
I feel a bit embarrassed to ask for help again, but once again I encountered a problem. I thought I finally understood how Skylark session functions worked, but another tiny code snippet proves that I don't.

I have these 3 handlers:

SKYLARK(AAA, "aaa")
{
	http.SessionSet(".MY_SESSION_VARIABLE", Value(1));
	http.RenderResult("ChairSupervisor/aaa");
}

SKYLARK(BBB, "bbb")
{
        http.ClearSession();
	http.RenderResult("ChairSupervisor/bbb");
}

SKYLARK(CCC, "ccc")
{
	http.RenderResult("ChairSupervisor/ccc");
}


and corresponding Witz templates:

aaa.witz:

<html><body>$set()<a href=$BBB>BBB</a></body></html>


bbb.witz:

<html><body>$set()<a href=$CCC>CCC</a></body></html>


ccc.witz:

<html><body>$set()</body></html>


I start from AAA handler. Link on "aaa" leads to "bbb" and link on "bbb" leads to "ccc". Each page displays a list of currently set session variables. As you can see, I define a session variable called ".MY_SESSION_VARIABLE". Since I call ClearSession() in "bbb" I assumed it would be cleared there and not visible on session variables list in "ccc". However, it's still there and still set to 1. Why didn't ClearSession() in "bbb" destroy the session and .MY_SESSION_VARIABLE is still listed in "ccc"? What did I do wrong this time?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Web] using of an uninitialized value in expression
Next Topic: Something wrong with post_identity()?
Goto Forum:
  


Current Time: Thu Aug 28 03:57:22 CEST 2025

Total time taken to generate the page: 0.00499 seconds