#!/usr/bin/python3
########################################################
# End a previous web session
########################################################
import os
import sessionFunc

sessionId = sessionFunc.getSessionId()              
sessionFunc.endSession()                            #must be called before any html output

print('Content-Type: text/html')
print('\n')

print("You have logged out successfully <br>")
print("<b>Session Id:</b>", sessionId, " has terminated <br>")




#=== link to see the python code =================================================
import os, sys
sys.path.insert(0,'/home/s/sultans/web/python/demo')
import zCode                          #import func to display the Python code
filename = os.path.abspath(__file__)  #get absolute file name 
zCode.display(filename)               #call it
#=================================================================================