SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Cookie Control

  1. #1
    SitePoint Enthusiast M ot U's Avatar
    Join Date
    Jul 2003
    Location
    Earth
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Cookie Control

    Hey im learning PHP and my friend gives me assignments of programs to write so that i can get better. My latest one hes asked me to write a class that controls access to and from a cookie. So any help to get me started or an existing program that i can re-write would be awesome and is greatly appreciated!
    M ot U == Master of the Universe

    because i am...

  2. #2
    public static void brain Gybbyl's Avatar
    Join Date
    Jun 2002
    Location
    Montana, USA
    Posts
    647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to start with this:

    PHP Code:
    class Cookie
    {
        var 
    $name;
        var 
    $value;
        var 
    $expire;    

        function 
    Cookie$name$value$time=3600 ){}
        function 
    set(){}
        function 
    get(){}

    See what you can do with that
    Ryan


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •