Is there any session for userid and a session to check if logged in?
Is there any session for userid and a session to check if logged in?
Hi,
$current_user is the object that holds the current user's details.
Use print_r() to get the full details of current user.
You can check the table tracker, order by date_modified desc.
The fields:
user_id: represents the id of user;
session_id: represents the login session of such user;
Have a look at the config.php, you will see the attribute session_dir.
The final session dir is:
The folder in $session_dir variable stores all active sessions for system users, and the session file name is: 'session_' . <table_tracker.session_id>.PHP Code:$session_dir = ($sugar_config['session_dir'] == '') ? ini_get("session.save_path") : $sugar_config['session_dir'];
If you delete the file representing the session for a given user so you will disconnect such user.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks