Highlighted
Frequent Contributor.
Frequent Contributor.
883 views

Reset user session in Web(http/html) script

VuGen version = 12.x

Protocol: Web (HTTP/HTML)

 

We have recorded/developed a web(http/html) script using VuGen 12.x.  The application does not have explicit logout feature like LogOut link or button. The user story requires different application users to perform different actions.

Login with User 1, execute step 1,  Step 2

Login with User 2 execute Step 3

Login with User 3 execute Step 4 , Step 5

So we are trying to end one user session and start another user session with a different user in this script. We are using web_set_user function to set the user for the session and using

web_cache_cleanup();
 web_cleanup_cookies();
 web_cleanup_auto_headers();

to end user session.

Is there other set of functions to end user session in a web script ?

 

 

0 Likes
2 Replies
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Reset user session in Web(http/html) script

Hello,

Why not record three different scripts to represent three different user? and I think the application didn't limited to only one user login at same time.

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Reset user session in Web(http/html) script

Thanks but thats not an option.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.