# Recover long name of a section in beamer (nameref used)

In beamer, I'm introducing a slide at the beginning of each section with

\usepackage{nameref}
\newcommand*{\currentname}{\@currentlabelname}

\AtBeginSection[]
{
\begin{frame}

The thing is, my section names are defined as, for instance, \section[ASLR]{Defeating address layout randomisation} However, the slides introduced use the short name of the section (in the above example: "ASLR"), and I would like it to be the long name (in the above example: "Defeating address layout randomisation").