How Reload the sessions |
Hi,
when ever user login a My site ... The user profile image is displayed based on session variable like $login_user = $session_data['user_profile']; .. after user login .. if change the profile ... Profile upload successed but profile view is not correctly .. old image name is loaded .. after logout and login again it Shows correct image ... Now how cani i reload the sessions after profile image uploaded by the user ... ? without Logout ... Thank U ...!
Manikanta
For avoiding such differences I hold within the session only the id of the logged in user.
An example: https://github.com/ivantcholakov/starter...t_user.php See how I use the property $data.
Otherwise, when the user uploads the new image, the code which handles the upload also has to update the session variable with the new name.
|
Welcome Guest, Not a member yet? Register Sign In |