[development] $user->uid from popup

Tamir Khason tamirk at gmail.com
Wed Jun 21 18:47:34 UTC 2006

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:
global $user;
if($user->uid) {
echo $user->uid;
else {
echo "BOO";	
comment post with following <a

Preview comment and click link. You'll get new window with BOO in it

On 6/21/06, Darrel O'Pry <dopry at 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.


More information about the development mailing list