Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Retrieving User Session variable
  • Posted: 07.08.2006, 14:26
     
    rank:
    Freshman Freshman
    registered:
     June 2006
    Status:
    offline
    last visit:
    07.08.06
    Posts:
    2
    Hi all,

    I'm writing some user dynamic on a module and I need to know what variable is used to store the current logged in user ID. i.e I have a list of logged in users and according to their logged in status a particular item will get displayed to them and not all the other users in the list.

    Thanks.
  • Posted: 07.08.2006, 15:40
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    28.11.08
    Posts:
    13417

    Code

    pnUserGetVar('uid')


    or

    Code

    pnSessionGetVar('uid')


    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 07.08.2006, 16:25
     
    rank:
    Freshman Freshman
    registered:
     June 2006
    Status:
    offline
    last visit:
    07.08.06
    Posts:
    2
    Thank you

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula