_Session database

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
Mat-D-Rat
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Feb 21, 2006 4:39 pm

_Session database

Post by Mat-D-Rat » Sun Oct 07, 2007 7:33 pm

I was hoping to make a modification of the Mod_whosonline for a bit of fun, but I've fallen at the first hurdle. For what I want to do I need to know the IP address for each session created. But from looking at the session data, this is not included? Or am I missing something obvious? TIA

User avatar
Mat-D-Rat
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Feb 21, 2006 4:39 pm

Re: _Session database

Post by Mat-D-Rat » Tue Oct 09, 2007 5:05 pm

I guess my component has to store a list of IP's manually in another table using the session id? and then deleteing old sessions based on the current session list?

User avatar
Mat-D-Rat
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Feb 21, 2006 4:39 pm

Re: _Session database

Post by Mat-D-Rat » Fri Oct 12, 2007 8:36 am

Well my original plan was to have a list of visitors by country... however with no IP information this is impossible at present. So what I have done for now (just learnign/messing about) is work with the session data to show who's using what on the site and split out the bots e.g.

Code: Select all

Bots/Spiders
1 x Google

Users
3 x Internet Explorer 7
2 x Internet Explorer 6
2 x Firefox 2

Total
8 total visitors


Pretty simply stuff!

Is it possible to extend that data stored in a session via a 3rd party component?


Post Reply