Save Session Profile
session_save_profilePreserve a session's cookies and auth state after login. Later, restore that login in new sessions by referencing the saved profile.
Instructions
Save a session's cookies and auth state to disk. Use this after logging in to a site so future sessions can restore that login. Pass the returned profile path to session_create's profilePath to reuse it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID to save. | |
| name | Yes | Profile name (e.g. 'google', 'github'). Overwrites if exists. |