Skip to content

RES_LOCATION

Jurek Muszyński edited this page Sep 8, 2018 · 2 revisions

void RES_LOCATION(const char *string)

Description

Sets response Location to string and changes its status to 303.

Returns

None

Example

if ( REQ("login") )
{
    if ( LOGGED )
        RES_LOCATION("dashboard");
    else
        gen_login_page(ci);
}
else if ( REQ("logout") )
{
    silgy_usr_logout(ci);
    REDIRECT_TO_LANDING;
}
Clone this wiki locally