SID-01009: Getting TWIKISID
| Status: |
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
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.