Solved

find a value in the session of all users

Posted on 2008-10-10
1
191 Views
Last Modified: 2012-05-05
hi experts,

lets say I have a user called 'paul' and a the $_SESSION[user_name]
I am trying to check if 'paul' exist as a value  in all the sessions stored in my site not only for one user's browser.


0
Comment
Question by:uk1900
1 Comment
 
LVL 17

Accepted Solution

by:
nanharbison earned 500 total points
ID: 22689590
If you want to store all the session user names on your site, you should create a table for this and perform the insert query when the user logs in. You could keep track of the date and time when they logged in, so you know how often users come to your site, although maybe this is not your intention when asking this question.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now