Regenerate generates a new session id and deletes the old one from storage. Returns: - error: An error if the regeneration fails. Usage: err := s.Regenerate()
()
| 237 | // |
| 238 | // err := s.Regenerate() |
| 239 | func (s *Session) Regenerate() error { |
| 240 | return s.RegenerateWithContext(s.resolveContext()) |
| 241 | } |
| 242 | |
| 243 | // RegenerateWithContext generates a new session id and deletes the old one from storage, |
| 244 | // using the provided context for cancellation and timeout control. |