jQuery GET part of URL and php session

jQuery GET part of URL and php session

Hi,

How to get:
1. Part of URL with jquery
for example:
..index.php?program_id=1&option=add
i wont to get valuer program_id = ? and option= ?

2. How to get value of php session?

Thanks