php header to non http page

Associate
Joined
20 May 2007
Posts
441
Hey everyone,

I'm not sure if this is possible but here it goes, I basically need to detect when I a user selects a link a navigates away from a web page in a program.

So they click logout, some computer is done and then I would like to redirect the browser to a link along the lines of 'MyAppName://<Logout></Logout>' Which my app can then extract the MyAppName from the link and parse the XML accordingly.

However in php the:

header("Location: MyAppName://<Logout></Logout>");

Doesn't seem to be working, I've only gotten this technique to work on links on a page i.e. <a href="MyAppName://...." /> but I don't want the user to have to click a button.

Anyone have any ideas?

Cheers,
Matt
 
not sure if you're speaking of a website so I will just use it as so...

in my case I use

the logout page will have the logout script which will then redirect to the homepage upon completion. maybe I'm not schooled enough to know about application uses with things like "myappname://<logout></logout>"); or you're being too presentational with your code? I dunno but I've never used the header like that before...
 
I've used the header like that and it worked without problems before, however I need it to go to a page not starting with http:// Which is where the problem starts :-S.

The application side of it can just be ignored, as all it does is listen to the browser for when the url changes.
 
Back
Top Bottom