Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: WAS: Back Button redirect? NOW: Non-flash answer...
From: Chris Tifer
Date: Mon, 7 Aug 2000 16:26:05 +0100

What I call a Server Side Cookie, you refer to as a Session Variable.

Can someone disable cookies (or variables) on the server end? I've
never heard of that. Only client-side.

Chris

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Paul
Franks
Sent: Monday, August 07, 2000 10:44 AM
To: flasheratchinwag [dot] com
Subject: RE: FLASH: WAS: Back Button redirect? NOW: Non-flash answer...


What is a server-side cookie?
I've heard of session variables but not cookies.
However, this will only work if cookies are not disabled.
Session variables depend on a SessionID cookie on the clients machine.

Trying to work around the back button can prove almost impossible, depending
on browser and set-up, but more info is needed about your server to provide
more help.

One option may be to use JavaScript to prevent the page being added to the
history, but this is another thing that some people hate. Such is life.

Paul

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Chris
Tifer
Sent: 07 August 2000 13:58
To: flasheratchinwag [dot] com
Subject: FLASH: WAS: Back Button redirect? NOW: Non-flash answer...


Hi,

An easy way to take care of this outside of Flash would be
to set a cookie... Preferrably a server-side cookie because
some people REALLY freak if you try to set a client-side
cookie, and plus you may not want them to be redirected
next time they come to your site.

Using ASP would be really simple because on the buy, audio, or
contact.htm file you would only need this

<%
Session("Redirect_Page") = "menu2.htm"
%>


Then on the index.htm, you would need to do:

<%
If Len(Session("Redirect_Page") > 0 Then Response.Redirect
Session("Redirect_Page")
%>

That's why I love ASP. Sooooo simple. Now, if you want them to replay the
intro, just make sure to set the Session Cookie to ""

I'm sure this could also be done easily in any other number of
other languages... Any ways this can be done through Flash anyone?

Chris

P.S.
For some's amusement: I built a calendar one time on a page and
each day was a link. I had a client that wanted to know if I could make it
so the browser's default back button took them back one day on the calendar
and the forward button could take you forward a day.... Sure..... No
problem. Ha ha


-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Jefferis
Peterson
Sent: Monday, August 07, 2000 8:28 AM
To: Flash MailList
Subject: FLASH: Back Button redirect?


There is an interesting problem as it relates to Flash. After an intro
movie, you often want to end in a menu for jumps to other locations. The
problem is that when a person clicks on the Back button on their browser
window top, it will take them to the beginning of the intro movie rather
than to the menu [because the entire Flash movie is refreshed]. Although
I always provide navigation within the new pages, if the client doesn't
click on the obvious choices but the browser top... they go back to the
intro. I was wondering if there is a way to redirect people based upon
their prior page in javascript?

Say for example index.htm with the flash gives links to new pages
buy.htm
audio.htm
contact.htm

If they press the back button on any of those pages, I want to redirect
them to
menu2.htm

And I'd like to give them the option of replaying the intro if they
wish... I assume that a link with a _new target will prevent the back
button action from coming into play... either that or a time() function
of some sort since last visit...


myMenu = page Array(buy.htm, audio.htm ,contact.htm)

if (document.referrer != "myMenu") {
window.location = "index.htm"
}
else

window.location = "menu2.htm
}


Can anyone foresee a problem with this approach?

Jeff


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: WAS: Back Button redirect? NO, John Andrew Morrison
  Re: FLASH: WAS: Back Button redirect? NO, Cheri Harder
  RE: FLASH: WAS: Back Button redirect? NO, Paul Franks

Replies
  RE: FLASH: WAS: Back Button redirect? NO, Paul Franks

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]