To track something you can use either session/cookie. In that case I would like to use cookie.
Steps at the time of page load :
1. Check for a cookie(say pop_key).
2. if exist do nothing.
3. if not exist , open the pop up.
4. create and save cookie (say pop_key) at the time of ok/cancel pop up
Here is the link to create cookie in jquery
Link1