Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:52:08+00:00 2026-06-04T23:52:08+00:00

There is a table default_ci_sessions in pyrocms. I think this has to be done

  • 0

There is a table default_ci_sessions in pyrocms. I think this has to be done using this table.
The fields of this table are:

1   session_id  varchar(40)
2   ip_address  varchar(16)
3   user_agent  varchar(120)
4   last_activity   int(10)
5   user_data   text    

sample row:

1   70bb123786d01c0be696e98cb1f6622e
2   0.0.0.0
3   Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19
4   1336371726
5   a:7:{s:9:"user_data";s:0:"";s:8:"username";s:5:"admin";s:5:"email";s:22:"abc@gmail.com";s:2:"id";s:1:"1";s:7:"user_id";s:1:"1";s:8:"group_id";s:1:"1";s:5:"group";s:5:"admin";}

I am developing on my localhost and there is just one (above) user registered. What I was thinking before I see the content of the table was that there should be one record at that table since you know :). But there are already 120 records there including guest users session_ids and 10 rows for my user (admin).
I think the only way is to figure out what can I do with this last_activity field.

And an offtopic question : why there are so much sessions there? aren’t they active sessions? So can I group them all for each username and pick the biggest last_activity ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:52:09+00:00Added an answer on June 4, 2026 at 11:52 pm

    You can consider a user logged in (since You have no information about logging out) with last activity not older than 24 minutes (24 mins is the time browser default holds the session).

    So in Your query You will count those records from default_ci_sessions where last_activity >= NOW() - INTERVAL '24' MINUTES…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my users table there is a column called featured . If it has
i have a t_class table in mySql, in this table there are 3 columns,
There is a table: create table table1 ( id integer primary key, user_id varchar(36),
There is a table in a databse, let's call this table Document. This table
There's a table like this one ______________________ | id | title | order |
I'm using a table to save some text data with this structure: CREATE TABLE
This table contains 1.2mill results, and I can't edit it as there are applications
I'm trying to figure out how i could select a row from there table
in an sql table there's an id, first name and last name field. i'd
In a MySQL (5.1) database table there is data that represents: how long a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.