Find us on facebook

Feb 25, 2015

session null after redirect with header

This is session saving problem and i could fix it giving permission to session storing directory.

Other things to check

  1. session_save_path('"your home directory path"/cgi-bin/tmp');
  2. check register_globals. It should be off.
  3. After the header redirect, end the current script using exit(); (Or can use session_write_close(); Or session_regenerate_id(true))

No comments:

Post a Comment