Welcome Guest, Not a member yet? Register   Sign In
How Reload the sessions
#1

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
Reply
#2

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.
Reply
#3

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB