How are $passLogin and $userLogin set? Have you verified that there really is a matching record in the table for the query to find (see the Debugging 101 thread in the Echo Lounge (also linked in my signature if I haven't changed it since I posted this)); you want to see if the query you're sending to the database really is what you think it is - or if $userLogin or $passLogin/$encryptedPass are themselves wrong.
You shouldn't need the second query: you already have that information from the first (because you selected the entire row, not just the fields you needed). Also, note that $_SESSION['uid'] won't contain an ID, but a MySQL record set.
And thirdly, note that the MySQL extension has been deprecated in favour of the MySQLi or PDO extensions.
Okay; so I just looked at the pastebin code for a bit of relevant context; that business with looping over $_POST and setting $$key is a noticeable potential security hazard (see [man]security.globals[/man] for a history).
Also, you don't do any escaping of $userLogin (see http://www.xkcd.com/327); if you used bound variables (available through the newer interface extensions mentioned above) then the database driver could do the necessary escaping for you.
The other comments still apply.