cookie help

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

cookie help

Postby glitch1501 » Fri Nov 28, 2003 9:44 pm

i think this goes here.....
i need help, i have a site that has a splash screen, but i only want the user to see the splash screen once, also(i have a .tk address, so it always shows http://www.blahblahbblahb.tk) whenever a user hits refresh, it goes to the splash page...

can anyone please write me a cookie that will only allow the splash page to be viewed once, i have no cookie writing background, so it may be very simple, thank you, glitch

Glitch's Photostream


He wants them to learn to walk and must therefore take away His hand; and if only the will to walk is really there, He is pleased even with their stumbles.

Image

Healing hands of God have mercy on our unclean souls
once again. Jesus Christ, Light of the World, burning
bright within our hearts forever. Freedom means love
without condition, without beginning or an end. Here's
my heart, let it be forever Yours, only You can make
every new day seem so new.
Every New Day - On Distant Shores - Five Iron Frenzy

Nail pierced hands they run with blood
A splitting brow forced by the thorns
His face is writhing with the pain yet it's comforting to me
Passion - Kutless
:thumb:
Image
User avatar
glitch1501
 
Posts: 2177
Joined: Mon Oct 20, 2003 6:50 pm
Location: the debris section

Postby madphilb » Sat Nov 29, 2003 8:07 am

I think you'd be better off having two indexes and use a META Refresh to the 2nd one from your splash screen (Don't forget a manual link).

Your index.html would be your splash screen.... setup a refresh tag to tell the browser to switch over to the 2nd index after a set amount of time... and put a link at the bottom that can manually get them there if they have the refresh option turned off in their browser or if they don't want to wait (much like the screen that pops up here when you post a message or something).

The 2nd index (say... index2.html) would have your main page, menus, news, whatever.

using cookies will require you to write Javascript, and if someone is refusing cookies or has Javascript turned off it won't work.

ALWAYs have standard links on your web page that allow access to your site even if you're using some sort of JavaScript menu or what-not.

PHIL
User avatar
madphilb
 
Posts: 1057
Joined: Thu May 29, 2003 1:46 pm
Location: Sunny St. Pete, FL

Postby Straylight » Sat Nov 29, 2003 8:22 am

*hopes this doesn't count as a thread hijack*

Are there any good websites around that explain how cookies work? My complete lack of knowledge in this area of webdesign has always been a HUGE stumbling block for me.
[align=center]
Image
Banner above created using my avatar generator tool.
You know you want try it.
User avatar
Straylight
 
Posts: 2346
Joined: Mon May 26, 2003 12:00 pm
Location: Manchester, UK

Postby glitch1501 » Sat Nov 29, 2003 8:30 am

nah its ok, i searched google for "how to use cookies webmaster"

and it came up with a few sites that i dont understand! yay!\


thanks madphil, ill try that

Glitch's Photostream


He wants them to learn to walk and must therefore take away His hand; and if only the will to walk is really there, He is pleased even with their stumbles.

Image

Healing hands of God have mercy on our unclean souls
once again. Jesus Christ, Light of the World, burning
bright within our hearts forever. Freedom means love
without condition, without beginning or an end. Here's
my heart, let it be forever Yours, only You can make
every new day seem so new.
Every New Day - On Distant Shores - Five Iron Frenzy

Nail pierced hands they run with blood
A splitting brow forced by the thorns
His face is writhing with the pain yet it's comforting to me
Passion - Kutless
:thumb:
Image
User avatar
glitch1501
 
Posts: 2177
Joined: Mon Oct 20, 2003 6:50 pm
Location: the debris section

Postby glitch1501 » Sat Nov 29, 2003 8:59 am

does this look like it would work?

<META HTTP-EQUIV="refresh" CONTENT="5;URL=http://www.s88333473.onlinehome.us/index.htm">

yay! it works, thanks guys

Glitch's Photostream


He wants them to learn to walk and must therefore take away His hand; and if only the will to walk is really there, He is pleased even with their stumbles.

Image

Healing hands of God have mercy on our unclean souls
once again. Jesus Christ, Light of the World, burning
bright within our hearts forever. Freedom means love
without condition, without beginning or an end. Here's
my heart, let it be forever Yours, only You can make
every new day seem so new.
Every New Day - On Distant Shores - Five Iron Frenzy

Nail pierced hands they run with blood
A splitting brow forced by the thorns
His face is writhing with the pain yet it's comforting to me
Passion - Kutless
:thumb:
Image
User avatar
glitch1501
 
Posts: 2177
Joined: Mon Oct 20, 2003 6:50 pm
Location: the debris section

Postby glitch1501 » Sat Nov 29, 2003 1:30 pm

nvm....it didnt work....

as you can see if you go to

http://www.thedifference.tk

click enter...or wait 5 seconds....
then hit refresh once your at the home, it goes back to the splash screen

Glitch's Photostream


He wants them to learn to walk and must therefore take away His hand; and if only the will to walk is really there, He is pleased even with their stumbles.

Image

Healing hands of God have mercy on our unclean souls
once again. Jesus Christ, Light of the World, burning
bright within our hearts forever. Freedom means love
without condition, without beginning or an end. Here's
my heart, let it be forever Yours, only You can make
every new day seem so new.
Every New Day - On Distant Shores - Five Iron Frenzy

Nail pierced hands they run with blood
A splitting brow forced by the thorns
His face is writhing with the pain yet it's comforting to me
Passion - Kutless
:thumb:
Image
User avatar
glitch1501
 
Posts: 2177
Joined: Mon Oct 20, 2003 6:50 pm
Location: the debris section


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 232 guests