We're Hiring!

OmeroCli: session file is not removed

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

OmeroCli: session file is not removed

Postby dasesan » Wed Oct 24, 2012 2:56 pm

Hi there,

I am using OmeroCli (4.4.4-ice34-b3099) and I am kind of confused by how the 'session-dir' flag works.

If I set a customized directory for the session files by using: login --session-dir /tmp

the first session file is properly created but it doesn't get removed after logging out. Consequently if I, afterwards, type again 'login --session-dir /tmp' to log in with a different user then OmeroCli logs me in with the old session file, and therefore with the previously logged on user.

Additionally, according to the documentation, one could see the current path to the session file by typing 'sessions file' in OmeroCli. I get no path whatsoever with this command if I have first set the path via 'session-dir'. I do get the default path if I omit the 'session-dir' option.

Does anybody know if this is the intended behavior?

Cheers!
dasesan
 
Posts: 10
Joined: Tue Dec 20, 2011 4:03 pm

Re: OmeroCli: session file is not removed

Postby sbesson » Thu Oct 25, 2012 9:59 am

Hi,

the OmeroCli sessions plugin currently always uses the default session directory unless specified otherwise. If logging in with the following command:

Code: Select all
dist/bin/omero sessions login --session-dir=/tmp


you should be able to inspect your session file with:

Code: Select all
dist/bin/omero sessions file --session-dir=/tmp


and logout (incl. removing the session file) with the following:

Code: Select all
dist/bin/omero sessions logout --session-dir=/tmp


Let me know if this doesn't work,
Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Re: OmeroCli: session file is not removed

Postby dasesan » Thu Oct 25, 2012 11:08 am

Hi Sebastien,

It does work. Thanks a lot for taking me out of the loop :) I guess I got confused with the help texts of the 'sessions logout' and the 'logout' commands. The latter shows no 'session-dir' option and I thought it was a wrapper for the former...

I really appreciate your help,
Daniel
dasesan
 
Posts: 10
Joined: Tue Dec 20, 2011 4:03 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest