Thanks for the reply but I think you might have miss understood what I am trying to do.
I am not trying to show the logged in users ID but other people profiles.
You see I have created a social networking site where people upload images, videos, etc...
What I have made is an area where people see all the results uploaded to the site by all site users.
When a person selects one result and goes to the detail page, they have the option to click on the uploader of the file being viewed and visit there Profile page which contains the information of that or another user.
I think if I use the session variable of the profile page, the person would only see their own information, which is not what I am trying to do.
Thanks in advance