PHP Security Session Manager Example

Posted on 2012-09-11
Last Modified: 2012-09-21
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.
Question by:EasyToHelp
    1 Comment
    LVL 107

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    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.

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now