Skip to content

Instantly share code, notes, and snippets.

View klapuch's full-sized avatar
😊
Exploring world through OOP

Dominik Klapuch klapuch

😊
Exploring world through OOP
  • ČSFD
  • Czech Republic
View GitHub Profile
@mindplay-dk
mindplay-dk / session-life-cycle.md
Last active March 28, 2024 19:52
Complete overview of the PHP SessionHandler life-cycle

This page provides a full overview of PHP's SessionHandler life-cycle - this was generated by a set of test-scripts, in order to provide an exact overview of when and what you can expect will be called in your custom SessionHandler implementation.

Each example is a separate script being run by a client with cookies enabled.

To the left, you can see the function being called in your script, and to the right, you can see the resulting calls being made to a custom session-handler registed using session_set_save_handler().

@mitchwongho
mitchwongho / Docker
Last active November 29, 2023 06:36
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@VasekPurchart
VasekPurchart / .bashrc
Last active July 8, 2023 18:29
GIT global configuration and enhancements
# used by Git (commit messages, rebase, ...)
export EDITOR=vim