I hate IE and cookies.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Roja wrote: All stored, no problems.

I'm curious now why you are getting restricted site for it.. it doesn't happen for me.
same here.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

I haven't a clue either. ^_^; It works perfectly for me, but about 4 people out of 4 people I've asked to view it in IE from my messenger list said they couldn't view it in IE as it was "Restricted Sites" ^_^;;
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Simplest solution? I'll reiterate: Make your site work _without_ cookies at all. I never really liked them anyway. If I were to visit your site with FireFox, I'd probably reject your cookie, be locked out, and go to another site. I just don't like unnecessary cookies.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Well what other way would I be able to use in place of cookies? Sessions maybe, but I don't know how to use them on my old version of PHP (6.0.9 I believe).

Edit: Not to mention, I'd probably render half of my website useless with sessions, as I have a few different snippets that are meant to detect if a variable is set (which I used cookies to do) to determine their output

Edit 2: I posted the source code for both the pages in question... This may help you understand what I'm talking about.
Main page: (Which is the actual page rendered)
http://dumbass.ionichost.com/?id=source_main
Index page: (Which has all the variable's set)
http://dumbass.ionichost.com/?id=source_index
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

I guess a better question is how do I set variables when using sessions?

Code: Select all

session_start();
	if(isset($the)) {
		$_SESSION['the'] = $the;
	} else {
		$_SESSION['the'] = "gra";
	}
That code there always renders $the as "gra", and never to the variable $the... But that's probably because I never SET $the...
Post Reply