Tags:
create new tag
view all tags

SID-01156: trying to turn on Session Support with Cookies

Status: Answered Answered TWiki version: 4.1.2 Perl version: Perl
Category: Server OS: Centos Last update: 14 years ago

I am trying to setup user session tracking via cookies, which is my understanding of the best way to keep users from having to login each time they visit the page. However I'm not finding any useful information on where to edit config files to turn this feature on.

Getting, Setting, and Clearing Session Variables

You can get, set, and clear session variables from within TWiki web pages or by using script parameters. This allows you to use the session as a personal "persistent memory space" that is not lost until the web browser is closed. Also note that if a session variable has the same name as a TWiki preference, the session variables value takes precedence over the TWiki preference. This allows for per-session preferences.

To make use of these features, use the tags:

%SESSION_VARIABLE{ "varName" }% %SESSION_VARIABLE{ "varName" set="varValue" }% %SESSION_VARIABLE{ "varName" clear="" }%

Note that you cannot override access controls preferences this way.

I've taken a good look at this section, which is from the users guide... but it does not specify where to add or toggle on these lines... i guess its assuming you have very intimate knowledge of Twiki...

-- JasonSipula - 2011-04-28

Discussion and Answer

You can set/get/clear session variables anywhere in a page. Values persist for the session until they are changed. You can set them also in the skin if you want to set them on each page view.

However, I do not think session variables are the right choice for your use case. make sure, {UseClientSessions} is turned on in configure. You can increase the {Sessions}{ExpireAfter} value. Look also into {Sessions}{ExpireCookiesAfter}. Some of these values are hidden in configure unless you click on the "yes I have read the documentation" button.

-- PeterThoeny - 2011-05-02

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title trying to turn on Session Support with Cookies
SupportCategory

TWiki version 4.1.2
Server OS Centos
Web server Apache
Perl version Perl
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2011-05-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.