Skip to content

RES_LOCATION

Jurek Muszyński edited this page Mar 28, 2024 · 5 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
        render_login();
}
else if ( REQ("logout") )
{
    npp_usr_logout();
    REDIRECT_TO_LANDING;
}
Clone this wiki locally