Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged redirect
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The problem is some times the redirect may kick you off to the next page before all the session variables have been saved. The true solution to lost session vars on redirect is to simply call session_write_close(); before setting the redirect header....
        
        
        
            0 
        
        
            1944 
        
                    posted 17 years ago by Wardy
            Parses the given path and creates a http redirect to that page.
        
        
        
            1 
        
        
            1486 
        
                    posted 18 years ago by IanLewis
            
