Author Topic: Call $_Session['user_id'] from other page  (Read 4443 times)

Offline sayma

  • Newbie
  • *
  • Posts: 1
Call $_Session['user_id'] from other page
« on: September 03, 2007, 02:38:13 AM »
Hi dev team,

I just install roundcube in may server. It is running perfectly. Now I have a query that is in my web server i'm offering various service including email. So for email i'm using roundcube. My question is when I'm loggin in email a session is registering. Now i want to use that session into other page too. Like I want to call that $_Session['user_id']; how can i do that?

thanks in advance

Offline bpat1434

  • Administrator
  • Hero Member
  • *****
  • Posts: 673
Re: Call $_Session['user_id'] from other page
« Reply #1 on: September 03, 2007, 01:51:36 PM »
Just call session_start() at the top of the page and then use $_SESSION['user_id'] where you want to be.