[Klone-users] Response_Redirect And Sessions

diakat 2000 diakat2000 at googlemail.com
Wed Aug 6 09:26:13 EDT 2008


Hello,

I've again a problem with sessions.


I want to do following:

Regardless which url the user enters, he always should redirected to
the index.klx for initializing the website (and after that redirected
backward to url).

So I've tried the following:

--------------------------------------------------------
// check if index.klx is called once a time
if (session_get(session, "firstCall")== NULL)
{
	//-> redirect
	const char *rd;
	rd = session_get(session, "redirector");
                response_redirect(response, rd ? rd : "index.klx");
}

// here's code for the page (in case of no redirection)

--------------------------------------------------------

Something happens, but there is no page content. The "
response_redirect(response, rd ? rd : "index.klx");" returns 0.
I've had a look at "C:\cygwin\tmp" - there is no new session-file.

The index.klx is correct. If I put index.klx in browser, the
redirection (same as above, just another page) works fine.
What's going wrong?
Maybe there is an other way to handle this?

Hope, you could help me!




More information about the klone-users mailing list