How do you tie that Page ID to the last portal user to access the application? Currently it pulls the last page accessed in that customer regardless of user. I need it to pull the last page ID from the portal user that accessed the portal. Otherwise it is overrided anytime a back end user access that same customer the last page ID changes - I need it tol follow the portal user specifically. this answers the question Would a last portal page visited work? IN stead of general PAGE ID - use portal page ID?
You can use AJAX setField() API to send last page ID back to the server, so it will be recorded for current portal visitor. I'll try to provide example in documentation.