My account: Login | Sign Up
Loading...

Are cookies as safe as sessions? | Thread profile

Thread profile page for "Are cookies as safe as sessions?" on http://www.devshed.com. This report page is a snippet summary view from a single thread "Are cookies as safe as sessions?", located on the Message Board at http://www.devshed.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below. Additional thread profile information is also shown in the following ways:

1) Top Contributing Authors
2) Related Threads on "eBay Auctions"
3) Related Threads on Other Sites

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.

Title: Are cookies as safe as sessions?
Site: Dev Shed Forums - Open Source web development  Dev Shed Forums - Open Source web development - site profile
Forum: PHP Development  PHP Development - forum profile
Total authors: 2 authors
Total thread posts: 8 posts
Thread activity: no new posts during last week
Domain info for: devshed.com

Thread posts in Are cookies as safe as sessions?:

1. 
Started 2 months ago (2008-07-02 02:41:00)  by achardrys
That doesn't echo a random string, the file seems have an error. PHP Version 4.3.11 Is the code you gave me over my version?
Size: 205 bytes
Customize:  Customize "Are cookies as safe as sessions? :: PHP Development :: Dev Shed Forums - Open Source web development"
2. 
Started 2 months ago (2008-07-02 04:03:00)  by E-Oreo
yeah, time to upgrade to PHP 5, it's been out for almost 4 years
Size: 120 bytes
Customize:  Customize "<b>Reply 1</b>: Are cookies as safe as sessions? :: PHP Development :: Dev Shed Forums - Open Source web development"
3. 
Started 2 months ago (2008-07-02 18:29:00)  by achardrys
Quote: Originally Posted by E-Oreo yeah, time to upgrade to PHP 5, it's been out for almost 4 years I got yahoo and they don't want to update their software.. I suggested it but they said "Sorry, we don't have any plans to upgrade our PHP software..." That means they probably won't.. Are there any other ways besides the method you showed me E-Oreo ...
Size: 1,180 bytes
Customize:  Customize "<b>Reply 2</b>: Page 2 - Are cookies as safe as sessions? - Dev Shed :: PHP Development :: Dev Shed Forums - Open Source web development"
4. 
Started 2 months ago (2008-07-02 21:23:00)  by E-Oreo
PHP Code: <?php function random_string ( $length , $source = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW XYZ1234567890' ) { $output = '' ; $max = strlen ( $source )- 1 ; for( $i = 0 ; $i < $length ; $i ++){ $output .= $source [ mt_rand ( 0 , $max ...
Size: 2,935 bytes
Customize:  Customize "<b>Reply 3</b>: Page 2 - Are cookies as safe as sessions? - Dev Shed :: PHP Development :: Dev Shed Forums - Open Source web development"
5. 
Started 2 months ago (2008-07-03 01:26:00)  by achardrys
TY the cookie code worked fine.. Just now my code doesnt work and i think its the cookie part of it, because i tried EVERYTHING! I've been workin on this for an hour straight (literally) and it just doesnt want to work.. I'm about to give up and screw this idea This code completely shuts down the script and must have a fatal error: PHP Code: <?...
Size: 3,008 bytes
Customize:  Customize "<b>Reply 4</b>: Page 2 - Are cookies as safe as sessions? - Dev Shed :: PHP Development :: Dev Shed Forums - Open Source web development"
6. 
Started 2 months ago (2008-07-03 05:31:00)  by E-Oreo
You can't use dashes in variable names and you need curly brackets around arrays when you use them inside strings. Also that first line will throw a notice if the cookie isn't set and the query is vulnerable to SQL injection if you put the cookie directly into it, use mysql_real_escape_string to clean the input. PHP Code: <?php if(empty( $_...
Size: 3,961 bytes
Customize:  Customize "<b>Reply 5</b>: Page 2 - Are cookies as safe as sessions? - Dev Shed :: PHP Development :: Dev Shed Forums - Open Source web development"
7. 
Started 2 months ago (2008-07-03 17:07:00)  by achardrys
Quote: Originally Posted by E-Oreo The other thing is just a logic issue. You treat the cookie as if it contains their username in the query and then later you compare it to the random value stored in last_cookie. You may want to modify the query to get by last_value instead of by username since the cookie can't contain both. TY for help. But it doesn't ...
Size: 1,181 bytes
Customize:  Customize "<b>Reply 6</b>: Page 2 - Are cookies as safe as sessions? - Dev Shed :: PHP Development :: Dev Shed Forums - Open Source web development"
8. 
Started 2 months ago (2008-07-08 16:57:00)  by achardrys
K thanks, that helps alot! I'm going to set it up now =]
Size: 120 bytes
Customize:  Customize "<b>Reply 7</b>: Page 2 - Are cookies as safe as sessions? - Dev Shed :: PHP Development :: Dev Shed Forums - Open Source web development"
 

Top contributing authors for Are cookies as safe as sessions?

Name Posts
achardrys 5
E-Oreo 3