IT Community - Software Programming, Web Development and Technical Support

Cookies before start using in php

This is a discussion on Cookies before start using in php within the PHP Programming forums, part of the Web Development category; Hui guys can anybody know what you should know about cookies before start using in php : - Vignesh...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 04:15 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Thumbs up Cookies before start using in php

Hui guys can anybody know what you should know about cookies before start using in php :


- Vignesh
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-18-2008, 04:18 AM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Thumbs up Re: Cookies before start using in php

1. Since cookies are used to record information about your activities on a particular domain, they can only be read by the domain that created them

2. A single domain cannot set more than twenty cookies, and each cookie is limited to a maximum size of 4 KB

3. A cookie usually possesses six attributes, of which only the first is mandatory. Here they are:
* name: the name of the cookie
* value: the value of the cookie
* expires: the date and time at which the cookie expires
* path: the top-level directory on the domain from which cookie data can be accessed
* domain: the domain for which the cookie is valid
* secure: a Boolean flag indicating whether the cookie should be transmitted only over a secure HTTP connection

It's important to remember that, since cookies are stored on the user's hard drive, you as the developer have very little control over them. If a user decides to turn off cookie support in his or her browser, your cookies will simply not be saved. Therefore, avoid writing code that depends heavily on cookies; and have a backup plan ready in case cookie data cannot be retrieved from the client.

Two types of cookies
1) temporary and
2) persistent cookies
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookies nhoj Java Server Pages (JSP) 4 09-29-2008 12:32 AM
ASP.NET Cookies Overview KiruthikaSambandam ASP and ASP.NET Programming 8 05-30-2008 02:10 AM
validate a start date and an end date so that start is less than end itbarota HTML, CSS and Javascript Coding Techniques 1 02-08-2008 06:32 AM
Cookies ragavraj PHP Programming 4 11-01-2007 12:48 PM
Where did you start roxyranelli Web Design Help 3 03-08-2007 12:36 PM


All times are GMT -7. The time now is 06:07 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0