Drupal saves its sessions in the sessions table. One can always query they table to get the session ID. There is however a faster way. If the user is logged it, the session id can be found with the following code: global $user; $user->sid; In any case the session id can also be read from [...]

Read more...

§257 · February 25, 2010 · guide, programming, web · 4 comments · Tags: ,


Form theming in drupal 6 is quite flexible. One of the nicest tricks is the ability to theme the form in stages. Calling drupal_render on a part of the form will not only return the rendered version of it, but it will also mark that part as rendered so that when you call the final [...]

Read more...

§256 · February 23, 2010 · Me · (No comments) · Tags: , , ,


Drupal, like most CMSes uses cache intensively to speed things up. In a production site that is exactly what you what. However when developing, cache can cause you much pain. If your an expert in drupal you probably already realized when you need to clear the cache in order to see changes and when not [...]

Read more...

§168 · May 29, 2009 · guide, programming, web · 5 comments · Tags: , , , ,


Tiger comes bundled with Apache 1.3 and PHP4. While these are still used for web development they are defenetly on the way out. For this reason I have decided to set up a more up to date MAMP installation on my old Powerbook G4. While this was all done on Tiger, it will most likely [...]

Read more...

§105 · May 4, 2009 · guide, web · 6 comments · Tags: , , , , ,