eWebEditor Home >> eWebEditor Manual V11.2 >> Developer Guide >> Advanced Session Security Interfaces

3.8.3 Interface Example

ASP Code:

<%

Session("eWebEditor_news_FileSize") = "100"   'Each upload Filesize is limited to 100KB

Session("eWebEditor_news_FileBrowse") = "1"   'allow the server-side file browse

Session("eWebEditor_news_SpaceSize") = "100"    ' Upload Spacesize is limited to 100MB

Session("eWebEditor_news_SpacePath") = "d:\user1\"   ' if it is not set the Space limitation path, take the uplaodfiles

Session("eWebEditor_news_PathMode") = "1"            'Use the absolute root path

Session("eWebEditor_news_PathUpload") = "../uploads/"     'Upload path

Session("eWebEditor_news_PathCusDir") = "user1/"     'Acutal upload to../uploads/user1/

......

%>

<iframe src="ewebeditor.htm?id=content1&skey=news"></iframe>

 

PHP Code:

<?php
$_SESSION["eWebEditor_news_FileSize"] = "100";         // Each upload Filesize is limited to 100KB
$_SESSION["eWebEditor_news_FileBrowse"] = "1";      //allow the server-side file browse
$_SESSION["eWebEditor_news_SpaceSize"] = "100";  //Upload Spacesize is limited to 100MB
$_SESSION["eWebEditor_news_SpacePath"] = "d:\user1\";  // if it is not set the Space limitation path, take the uplaodfiles
$_SESSION["eWebEditor_news_PathMode"] = "1";          // Use the absolute root path
$_SESSION["eWebEditor_news_PathUpload"] = "../uploads/";     // Upload path
$_SESSION["eWebEditor_news_PathCusDir"] = "user1/";          // Acutal upload to../uploads/user1/
......
?>

<iframe src="ewebeditor.htm?id=content1&skey=news"></iframe>

 

JSP Code:

<%
m_session.setAttribute("eWebEditor_news_FileSize", "100");   // Each upload Filesize is limited to 100KB
m_session.setAttribute("eWebEditor_news_FileBrowse", "1");   // allow the server-side file browse
m_session.setAttribute("eWebEditor_news_SpaceSize, "100");  //Upload Spacesize is limited to 100MB
m_session.setAttribute("eWebEditor_news_SpacePath", "d:\\user1\\");    // if it is not set the Space limitation path, take the uplaodfiles
m_session.setAttribute("eWebEditor_news_PathMode", "1");            // Use the absolute root path
m_session.setAttribute("eWebEditor_news_PathUpload", "../uploads/");     // Upload path
m_session.setAttribute("eWebEditor_news_PathCusDir", "user1/");  //Acutal upload to../uploads/user1/
......
%>

<iframe src="ewebeditor.htm?id=content1&skey=news"></iframe>