no, it does not do following make file (e.g. foo.php) and put it in drupal's root in the file put something like: <?php global $user; if($user->uid) { echo $user->uid; } else { echo "BOO"; } ?> comment post with following <a href="javascript:window.open('/foo.php');">foo</a> Preview comment and click link. You'll get new window with BOO in it On 6/21/06, Darrel O'Pry <dopry@thing.net> wrote:
On Wed, 2006-06-21 at 01:29 +0300, Tamir Khason wrote:
I want to get $user->uid (if authenticated user popped it up) from the window, popped up by drupal site (not drupal window) *without* transferring uid as parameter. Is it possible, and if it is, so how?
Thank you
If drupal is generating the popup gobal $user should be available if the user is logged in. The session spans windows.
-- Tamir