PHP Security Session Manager Example

Hi guys,

I have a XML Request webservice that i must first authenticate users on, can somebody provide me with an example of a secure way to preserve the session of the user to keep them logged in for a time and request they log in if they are not logged in on certain pages.

This should be in PHP Please.
This should be secure please.

Thanks a ton.
Who is Participating?
Ray PaseurConnect With a Mentor Commented:
You might want to consider this:

If you just put the service behind HTTPS and require the client to furnish an API key, that might be adequate for many applications. Just a thought... ~Ray
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.