in reply to Looking for general pointers on Apache::Session

As a long-time user of and fan of mod_perl, I would say that there is no good reason today to be building such a framework using it.

Use an existing framework and extend it to fit your needs. For example, if you use Dancer2 you handle sessions simply like this in the application config:

engines: session: Simple: cookie_name: your_app.session
There are pre-built session engines for cookies, file, memcached, database, whatever you want.

Using a framework like this in no way prevents you from building tools to simplify menus, etc. But using a modern framework does mean that you will avoid lots of struggles and pain with dated libraries.


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Looking for general pointers on Apache::Session
by nysus (Parson) on Nov 16, 2017 at 15:29 UTC

    Never heard of Dancer2. I will look into it. I understand rolling my own is not the most efficient way of building a web application, but this project is also a way for me to learn how to improve my web development and coding skills for large projects in general.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

      The best way to improve your web development skills is to do some web development. Writing a framework isn't web development. What you've described is more on the order of saying you want to build a shed, but first you want to (re)invent all the tools for building the shed before getting on with actually building the shed.

      this project is also a way for me to learn how to improve my web development and coding skills for large projects in general

      That is a good goal and developing something at home is the right approach. But it's all the more reason to use something that has on-going development and support, and which you could well encounter in the real world in either a job opportunity or a community project to join.


      The way forward always starts with a minimal test.