[Answered ]-Modify the raw url of Django request before all the normal processes

1👍

The final way I adopt is to change the iOS container to accept cookie, and no need to change the server side any more. some code for reference,

-(void)applicationDidBecomeActive:(UIApplication *)application {    
isInternetconnectionUp = [self checkInternetConnection];
    [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
}

1👍

You can just re-include your URLs with a prefix, no need to change anything.

url(r'^(?P<sessionid>sess_[a-f0-9]+)/', include('your_urls')),
👤Joe

Leave a comment