Tags:
create new tag
view all tags

SID-01009: Getting TWIKISID

Status: Unanswered Unanswered TWiki version: 4.1.2 Perl version:
Category: CategoryPlugins Server OS: Solaris 10 Last update: 15 years ago

Hi,

i am trying to write a perl plugin to update a topic from the unix command line. It works fine and changes the topic like it should but always as TwikiGuest user. So got to set the user while my script is running. A call of $session->{loginManager}->login() dont change the user even the login works. So i am trying to call the login plugin and storde a session cookie. With curl it works fine cause curl stores a cookie which i can use running my script. But i cant use curl on the unix machine so i try to store my own cookie.

Now the problem, to store my own cookie i got to store the sessionId from the login script and write it to the cookie file. But i dont fine a way to get the sessionId.

%SESSION_VARIABLE{"SESSIONID"}% or something like $session->getValues(); dont work. I need the command to get the SessionId from a perl script.

Thanks

-- StefanMaybaum - 2010-11-02

Discussion and Answer

Closing this question, cross-posted at SID-01017.

-- PeterThoeny - 2010-11-08

      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 Unanswered
Title Getting TWIKISID
SupportCategory CategoryPlugins
TWiki version 4.1.2
Server OS Solaris 10
Web server

Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-11-08 - 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.