In our last Joomla 3.0 tutorial, we talked a little about sessions, specifically the session lifetime setting. Again, the session lifetime setting allows you to change the amount of time idle users will stayed logged into Joomla 3.0

Joomla 3.0 includes another session setting you can adjust, Session Handler. Joomla gives the following description on this setting:

Session Handler:
The mechanism by which Joomla! identifies a User once they are connected to the web site using non-persistent cookies.

 

What Session Handler options are available?

At the time of this writing, Joomla 3.0 only gives you two options for Session Handler:

session-handler-setting

  1. Database
  2. None

 

Where is session data stored in the database?

When the Database option is set for Session Handler, session data is stored in a table named session. For example, if you have a table prefix of abc set for all of your Joomla tables, the session data would be stored in abc_session.

session-data-in-the-databaseMost of the information stored in a session within the database is not easily identifiable, but it can be seen on your server hosting joomla. For example, if you look at the screenshot to the left, you will see that the information stored in the data field is difficult to interpret simply by looking at it.

 

What's next?

Typically there are additional options for Session Handler, such as File. With an option for file session handling, Joomla 3.0 would save session data to text files on your server rather than as rows in your session table. At the time of this writing, database is the only session handler option. If additional session handlers become available, we'll keep you posted.

Continued Education in Course 205: Working with System Settings in Joomla 3
You are viewing Section 5: A look at the Joomla 3.1 Session Handler Setting
Section 4: How to change the Session Lifetime in Joomla 3.1
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

n/a Points
2014-07-18 4:10 am
Tell me if i want to logout from session whethter user is either active on site or idle,.
Staff
9,162 Points
2014-07-18 10:45 am
Unfortunately, your question is a bit unclear. Could you please clarify?
n/a Points
2014-09-26 2:29 am

Hi, I am using below code for session in joomla 3.2.1, every time it is exicuteing else part.

is it i am doing any thind wrong? please help me. and give me solution for session clear in joomla.

$session  = JFactory::getSession();if ($session->clear('groupids')){      $session->set('groupids', $groupIds);

}else {echo "string" die;}

Thanks.

Staff
17,306 Points
2014-09-26 12:07 pm
Hello Ronak,

Thanks for the question. We unfortunately can't provide a coding solution for you. I believe that you need to correct your if statement it's always resulting in the ELSE action. Your question would be better served if you were to look/post in the Joomla forums pertaining to session issues. Joomla programmers could then look at your could and possibly advise or even give you a coding solution. If you do post, make sure to indicate what you're trying to accomplish with your code.

Kindest regards,
Arnel C.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

4 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!