Jump to content


Photo

Sessions


  • Please log in to reply
5 replies to this topic

#1 Stevo

Stevo
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 July 2006 - 06:40 PM

How do I access to all sessions which are momentary active, and collect the informations from them.
For sample I want to see ho is present on the site. Sorry for bad language.And thanks.


#2 SharkBait

SharkBait
  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 15 July 2006 - 06:42 PM

There is a tutorial on PhpFreaks about tracking users on your website via their session IDs.  Though you need to be running MySQL or some sort of database to help keep track.

Think it's this one: http://www.phpfreaks...orials/62/0.php

#3 Stevo

Stevo
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 July 2006 - 06:59 PM

Can I see sessions information without MySQL database.If I know Id sessions.

#4 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 15 July 2006 - 07:05 PM

I think there's a way to store sessions on the server, but the "point" is the store them on the user's computer so it remember's their information.

The tutorial posted is really the only way to do it. You detect the session information from the user and put it in the table and show if they've been active in X amount of time.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#5 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 15 July 2006 - 07:15 PM

Sessions ARE server-side based, cookies are client-side. However, sessions are set up so that the server-side and client-side only have access to the active session.
However, by using MySQL or if you have access to the tmp directory you might be able to do something.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#6 Stevo

Stevo
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 July 2006 - 07:24 PM

Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users